http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1605 *** shadow/1605 Wed May 2 14:53:48 2001 --- shadow/1605.tmp.12166 Wed May 2 14:53:48 2001 *************** *** 0 **** --- 1,40 ---- + +============================================================================+ + | Null attribute name on parsed documents when doNamespaces() = true | + +----------------------------------------------------------------------------+ + | Bug #: 1605 Product: Xerces-C | + | Status: NEW Version: 1.4 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: All | + | Priority: Component: DOM | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I actually haven't experienced the bug, but that would appear to be the symptom + from source code inspection. + + The implementation of this constructor passes the name member of AttrImpl (not + the nam parameter) down to the AttrImpl constructor. The value of the nam + parameter (the actual name of the attribute) is lost. + + AttrNSImpl::AttrNSImpl(DocumentImpl *ownerDoc, const DOMString &nam) : + AttrImpl(ownerDoc, name) + { + this->namespaceURI=null; //DOM Level 2 + this->localName=null; //DOM Level 2 + } + + I would assume that it should be: + + + AttrNSImpl::AttrNSImpl(DocumentImpl *ownerDoc, const DOMString &nam) : + - AttrImpl(ownerDoc, name) + + AttrImpl(ownerDoc, nam) + { + this->namespaceURI=null; //DOM Level 2 + this->localName=null; //DOM Level 2 + } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]