mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
83e2e14c53
Source-Repo: https://github.com/servo/servo Source-Revision: bb7621f5dc33dd5068a3a4de7cdfe3af8b3d4130
19 lines
519 B
HTML
19 lines
519 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<script src="harness.js"></script>
|
|
<body>
|
|
<div id="div" class="div-class">A</div>
|
|
<p>P</p>
|
|
<script>
|
|
is(document.nodeValue, null);
|
|
var div = document.getElementById("div");
|
|
is(div.nodeValue, null);
|
|
is(div.firstChild.nodeValue, "A");
|
|
div.firstChild.nodeValue = "B";
|
|
is(div.firstChild.nodeValue, "B");
|
|
var commentNode = document.createComment("comment node");
|
|
is(commentNode.nodeValue, "comment node");
|
|
</script>
|
|
</body>
|
|
</html>
|