--- title: element.getAttributeNodeNS slug: Web/API/Element/getAttributeNodeNS tags: - DOM - Dokumentacja_Gecko_DOM - Gecko - Strony_wymagające_dopracowania - Wszystkie_kategorie translation_of: Web/API/Element/getAttributeNodeNS ---
{{ ApiRef() }}
Zwraca węzeł Attr
dla atrybutu z daną przestrzenią nazw i nazwą.
attributeNode = element.getAttributeNodeNS(namespace,nodeName)
attributeNode
jest węzłem określonego atrybutu.namespace
jest łańcuchem znaków określającym przestrzeń nazw atrybutu.nodeName
jest łańcuchem znaków określającym nazwę atrybutu.== Przykład == TBD The example needs to be fixed pre> // html: <div id="top" /> t = document.getElementById("top"); specialNode = t.getAttributeNodeNS( "http://www.mozilla.org/ns/specialspace", "id"); // iNode.value = "full-top" </pre
getAttributeNodeNS
is more specific than getAttributeNode in that it allows you to specify attributes that are part of a particular namespace. The corresponding setter method is setAttributeNodeNS.
{{ DOMAttributeMethods() }}