| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <div id="test"></div> | 3 <div id="test"></div> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 description('This tests that Text nodes do no have attributes nor hasAttributes.
'); | 6 description('This tests that Text nodes do no have attributes nor hasAttributes.
'); |
| 7 | 7 |
| 8 shouldBeFalse('Text.prototype.hasOwnProperty("hasAttributes")'); | 8 shouldBeFalse('Text.prototype.hasOwnProperty("hasAttributes")'); |
| 9 | 9 |
| 10 var text = document.createTextNode('text'); | 10 var text = document.createTextNode('text'); |
| 11 shouldBeFalse('"hasAttributes" in text'); | 11 shouldBeFalse('"hasAttributes" in text'); |
| 12 shouldBeFalse('"attributes" in text'); | 12 shouldBeFalse('"attributes" in text'); |
| 13 | 13 |
| 14 </script> | 14 </script> |
| 15 <script src="../../js/resources/js-test-post.js"></script> | |
| OLD | NEW |