- From: <nddelima@ca.ibm.com>
- Date: Thu, 14 Feb 2002 17:10:35 -0500
- To: www-dom-ts@w3.org
I downloaded and ran the DOM test suite against XercesJ2.0.0 ( a nightly snapshot about a day or two old) and noticed the following new test case failures... nodeentitysetnodevalue org.w3c.dom.DOMException: Entity nodes are read only at org.apache.xerces.dom.EntityImpl.setNodeValue(EntityImpl.java:331) at org.w3c.domts.level1.core.nodeentitysetnodevalue.runTest(nodeentitysetnodevalue.java:65) at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:50) nodevalue03 org.w3c.dom.DOMException: Entity Reference nodes are read only at org.apache.xerces.dom.EntityReferenceImpl.setNodeValue(EntityReferenceImpl.java:316) at org.w3c.domts.level1.core.nodevalue03.runTest(nodevalue03.java:56) at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:50) nodevalue04 org.w3c.dom.DOMException: DocumentType nodes are read only at org.apache.xerces.dom.DocumentTypeImpl.setNodeValue(DocumentTypeImpl.java:369) at org.w3c.domts.level1.core.nodevalue04.runTest(nodevalue04.java:56) at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:50) nodevalue07 org.w3c.dom.DOMException: Entity nodes are read only at org.apache.xerces.dom.EntityImpl.setNodeValue(EntityImpl.java:331) at org.w3c.domts.level1.core.nodevalue07.runTest(nodevalue07.java:60) at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:50) nodevalue08 org.w3c.dom.DOMException: Notation nodes are read only at org.apache.xerces.dom.NotationImpl.setNodeValue(NotationImpl.java:217) at org.w3c.domts.level1.core.nodevalue08.runTest(nodevalue08.java:60) at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:50) As per my understanding of DOM Level1 spec, the DocType, Notation, and descendants of Entity and EntityReference nodes are read only. DOM Level 2 goes further to state that Entity and EntityReference nodes and their descendants are readonly. Calling Node.setNodeValue(...) on readonly nodes should result in a NO_MODIFICATION_ALLOWED_ERROR which Xerces appears to be doing. So I'm not quite sure if these are valid failures. Thanks for all your effort and a great job with the test suite. Neil. IBM - Toronto Lab, e-mail: nddelima@ca.ibm.com
Received on Thursday, 14 February 2002 17:11:47 UTC