Element: getAttributeNodeNS() メソッド
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
指定された名前空間と名前を持つ属性の Attr
ノードを返します。
構文
js
getAttributeNodeNS(namespace, nodeName)
引数
namespace
は属性の名前空間を特定する文字列です。nodeName
は属性の名前を指定する文字列です。
返値
指定された属性のノードです。
メモ
getAttributeNodeNS
は getAttributeNode よりも、特定の名前空間に含まれる属性を特定することができる点でより具体的です。対応するセッターメソッドは setAttributeNodeNS です。
仕様書
Specification |
---|
DOM # dom-element-getattributenodens |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
getAttributeNodeNS |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.