1 Test to make sure EntityReference nodes are always treated readonly 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS xmlDoc2.adoptNode(entityReference) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7. 7 PASS entityReference.ownerDocument is xmlDoc 8 PASS entityReference.nodeValue = 'foo' threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7. 9 PASS entityReference.nodeValue is null 10 PASS entityReference.prefix = 'foo' threw exception Error: NAMESPACE_ERR: DOM Exception 14. 11 PASS entityReference.prefix is null 12 PASS entityReference.textContent = 'foo' threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7. 13 FAIL entityReference.textContent should be >. Was . 14 FAIL childrenBeforeFailedAppend should be 1. Was 0. 15 PASS entityReference.appendChild(text) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7. 16 PASS entityReference.childNodes.length is childrenBeforeFailedAppend 17 FAIL childrenBeforeFailedAppend should be 1. Was 0. 18 PASS entityReference.insertBefore(text, entityReference.firstChild) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7. 19 PASS entityReference.childNodes.length is childrenBeforeFailedAppend 20 PASS successfullyParsed is true 21 22 TEST COMPLETE 23 24