W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: setNamedItemNS(namespaceURI, localName)

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Thu, 25 Jan 2001 09:29:25 -0500
To: "Joe D Willliams" <JOEDWIL@earthlink.net>
Cc: <www-dom@w3.org>
Message-ID: <OF76E1AB7D.092DBFA1-ON852569DF.004EBA36@pok.ibm.com>

It looks like someone is confusing this setter method
                   Node setNamedItemNS(in Node arg)
with its corresponding getter:
       Node getNamedItemNS(in DOMString namespaceURI,  in DOMString

Note that the arguments are different. In the setter, we're inserting a
particular Node, and using that node's  name  -- which is a two-part value
made up of its localname and its namespaceURI, as stored in the node
itself. In the getter, we're specifying that two-part name and expect the
matching node (if any) to be returned.
Received on Thursday, 25 January 2001 09:29:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC