Name
NamedNodeMap.removeNamedItemNS( ) — delete a node specified by namespace and name
Availability
DOM Level 2 Core
Synopsis
Node removeNamedItemNS(StringnamespaceURI
, StringlocalName
) throws DOMException;
Arguments
-
namespaceURI
The
namespaceURI
property of the node to be removed, ornull
for no namespace.-
localName
The
localName
property of the node to be removed.
Returns
The node that was removed.
Throws
This method throws exceptions for the same reason as
removeNamedItem( )
.
Description
This method works just like removeNamedItem( )
,
except that the node to be removed is specified by namespace and
local name rather than just by name. This method is typically useful
only with XML documents that use namespaces.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.