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

David Flanagan

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

Availability

DOM Level 2 Core

Synopsis

Node getNamedItemNS(String namespaceURI, String localName);

Arguments

namespaceURI

The namespaceURI property of the desired node, or null for no namespace.

localName

The localName property of the local node.

Returns

The element of the NamedNodeMap that has the specified namespaceURI and localName properties, or null if there is no such node.

Description

getNamedItemNS( ) looks up an element of a NamedNodeMap by namespace and local name. It is useful only with XML documents that use namespaces.