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