You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/03/03 20:34:46 UTC

DO NOT REPLY [Bug 26994] - Document.replaceChild doesn't throw exception if adding 2nd element or doctype

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26994>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26994

Document.replaceChild doesn't throw exception if adding 2nd element or doctype

mrglavas@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From mrglavas@ca.ibm.com  2004-03-03 19:34 -------
Curt, thanks for providing a patch. We've modified it and committed it to CVS. 
Instead of making the instanceof checks getNodeType is called instead. There's 
no requirement in DOM that an instance of one node type will not be an 
implementor of other node types. Xalan's DOM implementation appearently has a 
Node proxy which implements the interface of every node type. Although Xerces 
DOM implmentation doesn't have such classes, it's better to be safe (especially 
if that changes in the future).

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org