Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of node.parentNode/parentElement
- 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,26 @@ | ||
<html> | ||
<head> | ||
<title></title> | ||
<script src="harness.js"></script> | ||
</head> | ||
<body> | ||
<div id="div1"></div> | ||
<script> | ||
// FIXME: This should be HTMLDocument. | ||
//isnot(document.documentElement.parentNode, null); | ||
is(document.documentElement.parentElement, null); | ||
|
||
var elem = document.createElement("p"); | ||
is(elem.parentNode, null); | ||
is(elem.parentElement, null); | ||
|
||
var child = document.createElement("p"); | ||
elem.appendChild(child); | ||
|
||
is(child.parentNode, elem); | ||
is(child.parentElement, elem); | ||
|
||
finish(); | ||
</script> | ||
</body> | ||
</html> |
a4aa8b0
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 ILyoan@a4aa8b0
a4aa8b0
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 ILyoan/servo/parentNode = a4aa8b0 into auto
a4aa8b0
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.
ILyoan/servo/parentNode = a4aa8b0 merged ok, testing candidate = c2116c3
a4aa8b0
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/492
success: http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/447
a4aa8b0
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 = c2116c3