From fccf8905d56b2269c8a0ad28629240a8301465e8 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 22 Jan 2022 22:38:45 +0900 Subject: 2021/11/19 時点の英語版に同期 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ja/web/api/element/getattributenodens/index.md | 41 +++++++++++----------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'files') diff --git a/files/ja/web/api/element/getattributenodens/index.md b/files/ja/web/api/element/getattributenodens/index.md index fb48807b05..ac57b73e00 100644 --- a/files/ja/web/api/element/getattributenodens/index.md +++ b/files/ja/web/api/element/getattributenodens/index.md @@ -1,37 +1,38 @@ --- -title: element.getAttributeNodeNS +title: Element.getAttributeNodeNS() slug: Web/API/Element/getAttributeNodeNS tags: + - API - DOM - - Gecko - - 翻訳中 + - メソッド + - リファレンス +browser-compat: api.Element.getAttributeNodeNS translation_of: Web/API/Element/getAttributeNodeNS --- -

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

+{{ APIRef("DOM") }} -

概要

+指定された名前空間と名前を持つ属性の `Attr` ノードを返します。 -

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

+## 構文 -

構文

+```js +attributeNode = element.getAttributeNodeNS(namespace, nodeName) +``` -
attributeNode = element.getAttributeNodeNS(namespace, nodeName)
-
+- `attributeNode` は指定された属性のノードです。 +- `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.

+## 注 - +`getAttributeNodeNS` は [getAttributeNode](getAttributeNode) よりも、特定の名前空間に含まれる属性を特定することができる点でより具体的です。対応するセッターメソッドは [setAttributeNodeNS](/ja/docs/Web/API/Element/setAttributeNodeNS) です。 -

注記

+{{ DOMAttributeMethods() }} -

<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 ==

+{{Specifications}} -

仕様

+## ブラウザーの互換性 -

DOM Level 2 Core: getAttributeNodeNS

+{{Compat}} -- cgit v1.2.3-54-g00ecf