Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 705
نمايش فراداده

Availability

DOM Level 2 Core

Synopsis

Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException;

Arguments

namespaceURI

The namespaceURI property of the node to be removed, or null 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.