OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 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. |
| 5 s.appendChild(p); |
| 6 </script> |
| 7 <b> |
| 8 <p id="paragraph"> |
| 9 <script> |
| 10 p = document.getElementById("paragraph"); |
| 11 s = document.getElementById("firstScript"); |
| 12 s.appendChild(p); |
| 13 s.type = ""; |
| 14 </script> |
| 15 <!-- End tag omitted for implicit close --> |
| 16 </b> |
| 17 <script> |
| 18 if (window.testRunner) |
| 19 testRunner.dumpAsText(); |
| 20 p.remove(); |
| 21 var p = document.querySelector("p"); |
| 22 if (p) { |
| 23 document.body.textContent = "FAIL, " + p.tagName + " has parentNode = "
+ p.parentNode; |
| 24 } else { |
| 25 document.body.textContent = "PASS"; |
| 26 } |
| 27 </script> |
OLD | NEW |