Programmer's Guide > Interfaces > W3C NamedNodeMap interface > removeNamedItemNS method
  
removeNamedItemNS method
Removes a node specified by local name and namespace URI. A removed attribute may be known to have a default value when this map contains the attributes attached to an element, as returned by the attributes attribute of the Node interface. If so, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.
HTML-only DOM implementations do not need to implement this method.
removeNamedItemNS(namespaceURI, localName )
Parameters
StringnamespaceURI
The namespace URI of the node to remove.
StringlocalName
The local name of the node to remove.
Returns
Node. The node removed from this map if a node with such a local name and namespace URI exists.
Throws
DOMException
NOT_FOUND_ERR: Raised if there is no node with the specified namespaceURI and localName in this map.
NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.