Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement the setter for Node.nodeValue.(fixes #1825)
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!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"); | ||
finish(); | ||
</script> | ||
</body> | ||
</html> |
0130392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jdm
at https://github.com/lpy/servo/commit/013039242044243c4a8e92fe44c8920640721184
0130392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging lpy/servo/issue1825 = 0130392 into auto
0130392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lpy/servo/issue1825 = 0130392 merged ok, testing candidate = cdec81e
0130392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://servo-buildbot.pub.build.mozilla.org/builders/linux/builds/1038
success: http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/993
0130392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = cdec81e