2 <script id=
"firstScript" type=
"invalid">
3 // When this script runs p.parentNode == null because we're in the middle of
4 // an HTMLConstructionSite::insert() task from the adoption agency.
10 p
= document
.getElementById("paragraph");
11 s
= document
.getElementById("firstScript");
15 <!-- End tag omitted for implicit close -->
18 if (window
.testRunner
)
19 testRunner
.dumpAsText();
21 var p
= document
.querySelector("p");
23 document
.body
.textContent
= "FAIL, " + p
.tagName
+ " has parentNode = " + p
.parentNode
;
25 document
.body
.textContent
= "PASS";