--- title: element.getAttributeNodeNS slug: Web/API/Element/getAttributeNodeNS tags: - DOM - Gecko - 翻訳中 translation_of: Web/API/Element/getAttributeNodeNS ---

{{ ApiRef("DOM") }}== Summary ==

概要

Returns the <code>Attr</code> node for the attribute with the given namespace and name. getAttributeNodeNS は指定の名前空間と名前の属性に対する Attr ノードを返します。== Syntax ==

構文

attributeNode = element.getAttributeNodeNS(namespace, nodeName)

* <code>attributeNode</code> is the node for specified attribute. * <code>namespace</code> is a string specifying the namespace of the attribute. * <code>nodeName</code> is a string specifying the name of the attribute.

注記

<code>getAttributeNodeNS</code> 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. getAttributeNodeNS は特定の名前空間の一部である属性を指定できるという点で getAttributeNodeより特殊です。対応するsetterメソッドはsetAttributeNodeNSです。

{{ DOMAttributeMethods() }}== Specification ==

仕様

DOM Level 2 Core: getAttributeNodeNS