Home | History | Annotate | Download | only in script-tests

Lines Matching refs:EntityReference

1 description("Test to make sure EntityReference nodes are always treated readonly")
5 var entityReference = xmlDoc.createEntityReference("gt");
7 shouldThrow("xmlDoc2.adoptNode(entityReference)");
8 shouldBe("entityReference.ownerDocument", "xmlDoc")
13 shouldThrow("entityReference.nodeValue = 'foo'");
14 shouldBe("entityReference.nodeValue", "null");
16 shouldThrow("entityReference.prefix = 'foo'");
17 shouldBe("entityReference.prefix", "null");
19 shouldThrow("entityReference.textContent = 'foo'");
20 shouldBe("entityReference.textContent", "'>'");
22 var childrenBeforeFailedAppend = entityReference.childNodes.length;
25 shouldThrow("entityReference.appendChild(text)");
26 shouldBe("entityReference.childNodes.length", "childrenBeforeFailedAppend");
28 childrenBeforeFailedAppend = entityReference.childNodes.length;
30 shouldThrow("entityReference.insertBefore(text, entityReference.firstChild)");
31 shouldBe("entityReference.childNodes.length", "childrenBeforeFailedAppend");