mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
29 lines
828 B
HTML
29 lines
828 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=598877
|
|
-->
|
|
<head>
|
|
<title>Test for Bug 598877</title>
|
|
<script type="application/javascript" src="/MochiKit/packed.js"></script>
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
</head>
|
|
<body>
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=598877">Mozilla Bug 598877</a>
|
|
<p id="display"></p>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
|
|
/** Test for Bug 598877 **/
|
|
|
|
var attr = document.createAttribute("foo");
|
|
attr.value = "bar";
|
|
ok(attr.firstChild, "attr.firstChild should be a text node");
|
|
is(attr.firstChild.nodeValue, "bar", "the text node value should be 'bar'");
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|