Implement child reparenting and node removal during parsing.

This commit is contained in:
nithin murali 2015-04-21 14:34:40 -04:00 committed by Josh Matthews
parent 69a2c45b34
commit c5e101b6e5
3 changed files with 35 additions and 5 deletions

View file

@ -71,6 +71,12 @@
"url": "/_mozilla/mozilla/characterdata.html"
}
],
"mozilla/child_reparenting.html": [
{
"path": "mozilla/child_reparenting.html",
"url": "/_mozilla/mozilla/child_reparenting.html"
}
],
"mozilla/collections.html": [
{
"path": "mozilla/collections.html",
@ -548,4 +554,4 @@
"rev": null,
"url_base": "/_mozilla/",
"version": 2
}
}

View file

@ -0,0 +1,14 @@
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body><font><p></font>
<script>
test(function() {
assert_equals(document.body.firstChild.tagName, "FONT");
assert_equals(document.body.firstChild.nextSibling.tagName, "P");
});
</script>
</body>
</html>