| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>Node.prototype.isEqualNode</title> | 3 <title>Node.prototype.isEqualNode</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-isequalnode"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-isequalnode"> |
| 5 <script src="../../../../resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 "use strict"; | 9 "use strict"; |
| 10 | 10 |
| 11 test(function() { | 11 test(function() { |
| 12 | 12 |
| 13 var doctype1 = document.implementation.createDocumentType("qualifiedName", "pu
blicId", "systemId"); | 13 var doctype1 = document.implementation.createDocumentType("qualifiedName", "pu
blicId", "systemId"); |
| 14 var doctype2 = document.implementation.createDocumentType("qualifiedName", "pu
blicId", "systemId"); | 14 var doctype2 = document.implementation.createDocumentType("qualifiedName", "pu
blicId", "systemId"); |
| 15 var doctype3 = document.implementation.createDocumentType("qualifiedName2", "p
ublicId", "systemId"); | 15 var doctype3 = document.implementation.createDocumentType("qualifiedName2", "p
ublicId", "systemId"); |
| 16 var doctype4 = document.implementation.createDocumentType("qualifiedName", "pu
blicId2", "systemId"); | 16 var doctype4 = document.implementation.createDocumentType("qualifiedName", "pu
blicId2", "systemId"); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 var parentB = parentFactory(); | 152 var parentB = parentFactory(); |
| 153 | 153 |
| 154 parentA.appendChild(document.createComment("data")); | 154 parentA.appendChild(document.createComment("data")); |
| 155 assert_false(parentA.isEqualNode(parentB)); | 155 assert_false(parentA.isEqualNode(parentB)); |
| 156 parentB.appendChild(document.createComment("data")); | 156 parentB.appendChild(document.createComment("data")); |
| 157 assert_true(parentA.isEqualNode(parentB)); | 157 assert_true(parentA.isEqualNode(parentB)); |
| 158 } | 158 } |
| 159 | 159 |
| 160 }, "node equality testing should test descendant equality too"); | 160 }, "node equality testing should test descendant equality too"); |
| 161 </script> | 161 </script> |
| OLD | NEW |