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 |
(...skipping 141 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 |