PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3010 *** shadow/3010 Mon Aug 6 16:09:53 2001 --- shadow/3010.tmp.9425 Mon Aug 6 16:09:53 2001 *************** *** 0 **** --- 1,29 ---- + +============================================================================+ + | DocumentImpl::importNode - Missed Readonly Flag Restore | + +----------------------------------------------------------------------------+ + | Bug #: 3010 Product: Xerces-C++ | + | Status: NEW Version: 1.5.1 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: DOM | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + DocumentImpl::importNode() in DocumentImpl.cpp seems to be missing the restore + on the read-only flag for ENTITY_NODE nodes. DocumentImpl::importNode() + temporarily clears the read-only flag for ENTITY_REFRENCE_NODE and ENTITY_NODE + nodes in order to allow a deep import. But fails to restore that flag's setting + prior to returning. The final if-block looks like: + + if (newnode->getNodeType() == DOM_Node::ENTITY_REFERENCE_NODE + || newnode->getNodeType() == DOM_Node::ENTITY_REFERENCE_NODE) + newnode->isReadOnly(true); + + One of those comparisons needs to be changed to: + + newnode->getNodeType() == DOM_Node::ENTITY_NODE \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
