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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27963

setAttribute duplicates an attribute with an empty value instead of replacing it

           Summary: setAttribute duplicates an attribute with an empty value
                    instead of replacing it
           Product: Xerces2-J
           Version: 2.6.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When there an attribute with an empty string value, the call to 
setAttribute(), instead of replacing the empty value, it creates an additional 
value with the same name.

E.g.

<el attr1=""/>

Then after a call to:
el.setAttribute("attr1", "12.0");

The resulting DOM would be:
<el attr1="" attr1="12.0"/>

This cannot be good...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to