OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> |
| 3 <title>CharacterData.remove</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-childnode-remove"> |
| 5 <script src="../../../../resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> |
| 7 <script src="ChildNode-remove.js"></script> |
| 8 <div id=log></div> |
| 9 <script> |
| 10 var text, text_parent, |
| 11 comment, comment_parent, |
| 12 pi, pi_parent; |
| 13 setup(function() { |
| 14 text = document.createTextNode("text"); |
| 15 text_parent = document.createElement("div"); |
| 16 comment = document.createComment("comment"); |
| 17 comment_parent = document.createElement("div"); |
| 18 pi = document.createProcessingInstruction("foo", "bar"); |
| 19 pi_parent = document.createElement("div"); |
| 20 }); |
| 21 testRemove(text, text_parent, "text"); |
| 22 testRemove(comment, comment_parent, "comment"); |
| 23 testRemove(pi, pi_parent, "PI"); |
| 24 </script> |
OLD | NEW |