mirror of
https://github.com/servo/servo.git
synced 2025-06-18 05:14:28 +00:00
This removes the old code for asyncronously loading scripts during HTML parsing and then executing them afterward. Fixes #3356.
25 lines
662 B
HTML
25 lines
662 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="harness.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="foo"><div id="bar"></div></div>
|
|
<script>
|
|
let foo = document.getElementById("foo");
|
|
let doc = document.implementation.createHTMLDocument("title");
|
|
|
|
is(foo.ownerDocument, document);
|
|
|
|
let adopted_foo = doc.adoptNode(foo);
|
|
is(document.getElementById("foo"), null);
|
|
|
|
is(foo, adopted_foo);
|
|
is(foo.ownerDocument, doc);
|
|
is(foo.parentNode, null);
|
|
is(foo.childNodes.length, 1);
|
|
|
|
finish();
|
|
</script>
|
|
</body>
|
|
</html>
|