https://issues.apache.org/bugzilla/show_bug.cgi?id=49707
--- Comment #2 from Marchant Jean-François <[email protected]> 2010-08-20 01:31:35 EDT --- I do not understand your comment. Here another way of explaining what I found in your code. YOUR code in the library is: public void setAttributeNS(String namespaceURI, String qualifiedName, ^^^^^^^^^^^^^^ you want a QUALIFIED name as 2nd argument; ok that is as in W3C DOM documentation String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } if (namespaceURI != null && namespaceURI.length() == 0) { namespaceURI = null; } Attr attr = getAttributeNodeNS(namespaceURI, qualifiedName); ^^^^^^^^^^^^^ Here you give a QUALIFIED name as argument but as explained in the online documentation, getAttributeNodeNS NEED a LOCAL name. So you have the incorrect behaviour I have explained in my first comment if (attr == null) { attr = getOwnerDocument().createAttributeNS(namespaceURI, qualifiedName); attr.setValue(value); attributes.setNamedItemNS(attr); } else { attr.setValue(value); } } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
