blob: 0ac3d9cbdf700e696b6a074850c626c438636797 [file] [log] [blame]
Test to make sure EntityReference nodes are always treated readonly
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS xmlDoc2.adoptNode(entityReference) threw exception Error: NoModificationAllowedError: DOM Exception 7.
PASS entityReference.ownerDocument is xmlDoc
PASS entityReference.nodeValue = 'foo' threw exception Error: NoModificationAllowedError: DOM Exception 7.
PASS entityReference.nodeValue is null
PASS entityReference.prefix = 'foo' threw exception Error: NamespaceError: DOM Exception 14.
PASS entityReference.prefix is null
PASS entityReference.textContent = 'foo' threw exception Error: NoModificationAllowedError: DOM Exception 7.
FAIL entityReference.textContent should be >. Was .
FAIL childrenBeforeFailedAppend should be 1. Was 0.
PASS entityReference.appendChild(text) threw exception Error: NoModificationAllowedError: DOM Exception 7.
PASS entityReference.childNodes.length is childrenBeforeFailedAppend
FAIL childrenBeforeFailedAppend should be 1. Was 0.
PASS entityReference.insertBefore(text, entityReference.firstChild) threw exception Error: NoModificationAllowedError: DOM Exception 7.
PASS entityReference.childNodes.length is childrenBeforeFailedAppend
PASS successfullyParsed is true
TEST COMPLETE