W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1999

method removeNamedItem

From: Nick Levine <nick@harlequin.co.uk>
Date: Wed, 2 Jun 1999 06:10:55 -0400 (EDT)
Message-ID: <37550109.EA783892@harlequin.co.uk>
To: www-dom@w3.org
CC: nick@harlequin.co.uk
Your current specification

    http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html

states that removeNamedItem returns null if "no node with such a name
exists" and also raises NOT_FOUND_ERR "if there is no node named name in
the map." These statements appear to contradict each other. Can you
clarify this?

Many thanks,

- nick

------------------------------------------------

removeNamedItem
               Removes a node specified by name. If the removed node is
            an Attr with a default value it is immediately replaced.
               Parameters
                     name
                          The name of a node to remove.

               Return Value
                    The node removed from the map or null if no node
with
            such a name exists.
               Exceptions
                    DOMException

                         NOT_FOUND_ERR: Raised if there is no node named

            name in the map.
Received on Wednesday, 2 June 1999 06:31:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT