November 2001
Intermediate to advanced
936 pages
68h 43m
English
Content preview from JavaScript: The Definitive Guide, Fourth EditionBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial

Name
Element.getElementsByTagNameNS( ) — return descendant elements with the specified name and namespace
Availability
DOM Level 2 Core
Synopsis
Node[] getElementsByTagNameNS(StringnamespaceURI, StringlocalName);
Arguments
-
namespaceURI The URI that uniquely identifies the namespace of the element.
-
localName The identifier that specifies the name of the element within its namespace.
Returns
An array (technically, a NodeList) of Element objects that are descendants of this element and have the specified name and namespace.
Description
This method works like getElementsByTagName( ),
except that the tag name of the desired elements is specified as a
combination of a namespace URI and a local name defined within that
namespace. This method is useful only with XML documents that use
namespaces.