<!DOCTYPE html> | |
<script src="../../resources/js-test.js"></script> | |
<div id="test"></div> | |
<script> | |
description('This tests that Text nodes do no have attributes nor hasAttributes.'); | |
shouldBeFalse('Text.prototype.hasOwnProperty("hasAttributes")'); | |
var text = document.createTextNode('text'); | |
shouldBeFalse('"hasAttributes" in text'); | |
shouldBeFalse('"attributes" in text'); | |
</script> |