- From: Philippe Le Hegaret <plh@w3.org>
- Date: Wed, 24 Jan 2001 22:43:29 -0500
- To: Joe D Willliams <JOEDWIL@earthlink.net>
- CC: www-dom@w3.org
Joe D Willliams wrote: > > Justin >error in the JAXP 1.1.ea2 method definition for NamedNodeMap. > setNamedItemNS > > yes! > org.w3c.dom > Interface NamedNodeMap should be: > > setNamedItemNS(namespaceURI, localName) > > Don> Joe might want to look at it too. > Yes. please look at: > > http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1780488922 > > // Introduced in DOM Level 2: > Node setNamedItemNS(in Node arg) > raises(DOMException); > > should be: > > Node setNamedItemNS(in DOMString namespaceURI, > in DOMString localName); > raises(DOMException); > > base\jaxp-1_1-ea2\jaxp-1.1ea2\docs\api\org\w3c\dom\NamedNodeMap.html > > follows that bad lead. > You just will not be able to setNamedItemNS with Node arg. The DOM specification is clear [1]. The definition of setNamedItemNS is Node setNamedItemNS(in Node arg) raises(DOMException); This is not a mistake. This is consistent with DOM Level 1. What does your set operation do? What is the value of attribute? Philippe [1] http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-setNamedItemNS
Received on Wednesday, 24 January 2001 22:44:06 UTC