You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/05/02 23:53:48 UTC

[Bug 1605] New - Null attribute name on parsed documents when doNamespaces() = true

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: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: CurtA@hyprotech.com                                          |
+ |      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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org