method removeNamedItem

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 UTC