You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/04/01 23:03:44 UTC
cvs commit: xml-xerces/c/tests/DOM/DOMTest DTest.cpp
tng 02/04/01 13:03:44
Modified: c/tests/DOM/DOMTest DTest.cpp
Log:
According to DOM spec, setNodeValue by default is no-op.
Revision Changes Path
1.17 +6 -6 xml-xerces/c/tests/DOM/DOMTest/DTest.cpp
Index: DTest.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/tests/DOM/DOMTest/DTest.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- DTest.cpp 1 Feb 2002 22:43:17 -0000 1.16
+++ DTest.cpp 1 Apr 2002 21:03:44 -0000 1.17
@@ -56,6 +56,9 @@
/*
* $Log: DTest.cpp,v $
+ * Revision 1.17 2002/04/01 21:03:44 tng
+ * According to DOM spec, setNodeValue by default is no-op.
+ *
* Revision 1.16 2002/02/01 22:43:17 peiyongz
* sane_include
*
@@ -349,13 +352,10 @@
EXCEPTIONSTEST(doc.replaceChild(docCDATASection, docFirstElement), DOM_DOMException::HIERARCHY_REQUEST_ERR, OK, 5);
// The following setNodeValue tests are not invalid
- // According to DOM spec, exception is raised only if the node is readonly, otherwise should be no-op.
+ // According to DOM spec, if the node value is defined to be null in the DOM spec, setting it has no effect.
+ // Only those node type that are supposed to have node value, exception will be raised if the node is readonly.
// EXCEPTIONSTEST(docFirstElement.setNodeValue("This shouldn't work!" ), DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, OK, 6);
-
- EXCEPTIONSTEST(docReferenceEntity.setNodeValue("This shouldn't work!" ), DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, OK, 7);
-
- // The following setNodeValue tests are not invalid
- // According to DOM spec, exception is raised only if the node is readonly, otherwise should be no-op.
+ // EXCEPTIONSTEST(docReferenceEntity.setNodeValue("This shouldn't work!" ), DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, OK, 7);
// EXCEPTIONSTEST(docEntity.setNodeValue("This shouldn't work!" ), DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, OK, 8);
// EXCEPTIONSTEST(doc.setNodeValue("This shouldn't work!" ), DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, OK, 9);
// EXCEPTIONSTEST(docDocType.setNodeValue("This shouldn't work!" ), DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, OK, 10);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org