This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

getElementsByTagNameNS

Summary

Just like document.getElementsByTagNameNS except that it only works within the scope of this ShadowRoot’s shadow tree.

Method of dom/shadowdom/ShadowRootdom/shadowdom/ShadowRoot

Syntax

var result = element.getElementsByTagNameNS(pvarNS, bstrLocalName);

Parameters

pvarNS

Data-type
VARIANT

The namespace URI that defines the desired elements or an asterisk (*) to match all namespaces with the document.

bstrLocalName

Data-type
BSTR

The name of the desired element or an asterisk (*) to match all elements with the specified namespace.

Return Value

Returns an object of type DOM NodeDOM Node

An IHTMLElementCollection of elements within the namespace.