Document.GetElementsByTagNameNS

Document.GetElementsByTagNameNS method

Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.

public HTMLCollection GetElementsByTagNameNS(string namespaceURI, string localName)
ParameterTypeDescription
namespaceURIStringThe namespace URI of elements to look for.
localNameStringEither the local name of elements to look for or the special value *, which matches all elements.

Return Value

A live NodeList of found elements in the order they appear in the tree.

Remarks

Refer to official spec.

See Also