From d793503f812e424dd137b141e4b75a44ef0ea065 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 28 Jun 2021 00:54:11 +0900 Subject: Web/API/Element/localName を更新 (#1218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - conflicting 版よりも正規版の方が英語版に近いため、 conflicting 版を削除 - 2021/06/13 時点の英語版に同期 --- files/ja/_redirects.txt | 10 ++-- files/ja/_wikihistory.json | 19 ------- .../web/api/element/localname/index.html | 63 --------------------- files/ja/web/api/element/localname/index.html | 65 +++++++++------------- 4 files changed, 32 insertions(+), 125 deletions(-) delete mode 100644 files/ja/conflicting/web/api/element/localname/index.html (limited to 'files/ja') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 7b40df7497..1decf984a6 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -1364,7 +1364,7 @@ /ja/docs/DOM/Node.isSameNode /ja/docs/Web/API/Node/isSameNode /ja/docs/DOM/Node.isSupported /ja/docs/Web/API/Node/isSupported /ja/docs/DOM/Node.lastChild /ja/docs/Web/API/Node/lastChild -/ja/docs/DOM/Node.localName /ja/docs/conflicting/Web/API/Element/localName +/ja/docs/DOM/Node.localName /ja/docs/Web/API/Element/localName /ja/docs/DOM/Node.namespaceURI /ja/docs/Web/API/Element/namespaceURI /ja/docs/DOM/Node.nextSibling /ja/docs/Web/API/Node/nextSibling /ja/docs/DOM/Node.nodeName /ja/docs/Web/API/Node/nodeName @@ -1510,7 +1510,7 @@ /ja/docs/DOM/element.lang /ja/docs/Web/API/HTMLElement/lang /ja/docs/DOM/element.lastChild /ja/docs/Web/API/Node/lastChild /ja/docs/DOM/element.length /ja/docs/Web/API/NodeList/length -/ja/docs/DOM/element.localName /ja/docs/conflicting/Web/API/Element/localName +/ja/docs/DOM/element.localName /ja/docs/Web/API/Element/localName /ja/docs/DOM/element.name /ja/docs/conflicting/Web/API /ja/docs/DOM/element.namespaceURI /ja/docs/Web/API/Element/namespaceURI /ja/docs/DOM/element.nextSibling /ja/docs/Web/API/Node/nextSibling @@ -1814,7 +1814,7 @@ /ja/docs/DOM:element.lang /ja/docs/Web/API/HTMLElement/lang /ja/docs/DOM:element.lastChild /ja/docs/Web/API/Node/lastChild /ja/docs/DOM:element.length /ja/docs/Web/API/NodeList/length -/ja/docs/DOM:element.localName /ja/docs/conflicting/Web/API/Element/localName +/ja/docs/DOM:element.localName /ja/docs/Web/API/Element/localName /ja/docs/DOM:element.namespaceURI /ja/docs/Web/API/Element/namespaceURI /ja/docs/DOM:element.nextSibling /ja/docs/Web/API/Node/nextSibling /ja/docs/DOM:element.nodeName /ja/docs/Web/API/Node/nodeName @@ -3900,7 +3900,7 @@ /ja/docs/Web/API/Node.isSameNode /ja/docs/Web/API/Node/isSameNode /ja/docs/Web/API/Node.isSupported /ja/docs/Web/API/Node/isSupported /ja/docs/Web/API/Node.lastChild /ja/docs/Web/API/Node/lastChild -/ja/docs/Web/API/Node.localName /ja/docs/conflicting/Web/API/Element/localName +/ja/docs/Web/API/Node.localName /ja/docs/Web/API/Element/localName /ja/docs/Web/API/Node.namespaceURI /ja/docs/Web/API/Element/namespaceURI /ja/docs/Web/API/Node.nextSibling /ja/docs/Web/API/Node/nextSibling /ja/docs/Web/API/Node.nodeName /ja/docs/Web/API/Node/nodeName @@ -3921,7 +3921,7 @@ /ja/docs/Web/API/Node/firstChild-temp /ja/docs/Web/API/Node/firstChild /ja/docs/Web/API/Node/getUserData /ja/docs/orphaned/Web/API/Node/getUserData /ja/docs/Web/API/Node/innerText /ja/docs/Web/API/HTMLElement/innerText -/ja/docs/Web/API/Node/localName /ja/docs/conflicting/Web/API/Element/localName +/ja/docs/Web/API/Node/localName /ja/docs/Web/API/Element/localName /ja/docs/Web/API/Node/namespaceURI /ja/docs/Web/API/Element/namespaceURI /ja/docs/Web/API/Node/nodePrincipal /ja/docs/conflicting/Web/API/Node_378aed5ed6869e50853edbc988cf9556 /ja/docs/Web/API/Node/prefix /ja/docs/conflicting/Web/API/Element/prefix diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index be0b6686ef..2bc776fc6b 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -48794,25 +48794,6 @@ "gurezo" ] }, - "conflicting/Web/API/Element/compositionstart_event": { - "modified": "2019-03-24T00:14:09.377Z", - "contributors": [ - "mfuji09", - "ethertank", - "Masayuki" - ] - }, - "conflicting/Web/API/Element/localName": { - "modified": "2019-03-24T00:02:06.649Z", - "contributors": [ - "fscholz", - "khalid32", - "ethertank", - "Gomita", - "Mgjbot", - "Taken" - ] - }, "conflicting/Web/API/Element/prefix": { "modified": "2020-10-15T21:16:27.942Z", "contributors": [ diff --git a/files/ja/conflicting/web/api/element/localname/index.html b/files/ja/conflicting/web/api/element/localname/index.html deleted file mode 100644 index e8849609d9..0000000000 --- a/files/ja/conflicting/web/api/element/localname/index.html +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: Node.localName -slug: conflicting/Web/API/Element/localName -tags: - - DOM - - Gecko - - Gecko DOM Reference - - Node - - 要更新 -translation_of: Web/API/Node/localName -original_slug: Web/API/Node/localName ---- -

{{ ApiRef() }}

-

概要

-

このノードの修飾名のローカル部分を返します。

-

構文

-
name = element.localName
-
- -

-

(text/xmlapplication/xhtml+xml のような XML コンテンツタイプで提供されなくてはなりません。)

-
<html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:svg="http://www.w3.org/2000/svg">
-<head>
-  <script type="application/javascript"><![CDATA[
-  function test() {
-    var text = document.getElementById('text');
-    var circle = document.getElementById('circle');
-
-    text.value = "<svg:circle> has:\n" +
-                 "localName = '" + circle.localName + "'\n" +
-                 "namespaceURI = '" + circle.namespaceURI + "'";
-  }
-  ]]></script>
-</head>
-<body onload="test()">
-  <svg:svg version="1.1"
-    width="100px" height="100px"
-    viewBox="0 0 100 100">
-    <svg:circle cx="50" cy="50" r="30" style="fill:#aaa" id="circle"/>
-  </svg:svg>
-  <textarea id="text" rows="4" cols="55"/>
-</body>
-</html>
-
-

注記

-

ノードのローカル名はノードの修飾名のコロン(:)の後ろの部分です。修飾名は特定の XML 文書の名前空間の一部として XML の中で特に使われます。例えば、修飾名 ecomm:partners の中で partners がローカル名で ecomm が接頭辞です。

-
<ecomm:business id="soda_shop" type="brick_n_mortar">
-  <ecomm:partners>
-    <ecomm:partner id="1001">Tony's Syrup Warehouse
-    </ecomm:partner>
-  </ecomm:partner>
-</ecomm:business>
-
-

Needs to be reworded; right now it's wrong. -Nickolay The prefix&mdash;in this case, "ecomm"&mdash;defines the namespace in which the local name can be used.

-

 {{ gecko_minversion_note("1.9.2", "Firefox 3.5 およびそれ以前では、このプロパティは HTML DOM 中の HTML 要素については大文字のローカル名を返します(XML DOM 中の XHTML 要素については小文字のローカル名を返します)。 Firefox 3.6 以降のバージョンでは、 HTML 5 との互換性のため、内部的な DOM ストレージにおける大文字/小文字で返します。つまり、 HTML DOM と XML DOM の両方において、 HTML 要素は小文字のローカル名となります。 tagName プロパティは、 HTML DOM 中の HTML 要素についても今まで通り大文字のローカル名を返します。") }}

-

ELEMENT_NODEATTRIBUTE_NODE 以外の種類全てに属すノードでは、常に localNamenull です。

-

参照

-

element.namespaceURI

-

仕様

-

DOM Level 2 Core: Node.localName

diff --git a/files/ja/web/api/element/localname/index.html b/files/ja/web/api/element/localname/index.html index 797a6e0660..b92152fbfa 100644 --- a/files/ja/web/api/element/localname/index.html +++ b/files/ja/web/api/element/localname/index.html @@ -1,28 +1,33 @@ --- title: Element.localName slug: Web/API/Element/localName +tags: +- API +- DOM +- NeedsBrowserCompatibility +- NeedsMobileBrowserCompatibility +- Property +- Reference +browser-compat: api.Element.localName translation_of: Web/API/Element/localName ---
{{APIRef("DOM")}}
-

Element.localName 読み取り専用プロパティは、要素の修飾名のローカル部分を返します。

+

Element.localName は読み取り専用プロパティで、要素の修飾名のローカル部分を返します。

-
-

DOM4 より前、この API は {{domxref("Node")}} の中で定義されていました。

-
- -

構文

+

構文

-
name = element.localName
+
name = element.localName
 
-

返り値

+

返値

-

要素の修飾名の、ローカル部分を示す {{domxref("DOMString")}}。

+

要素の修飾名の、ローカル部分を示す {{domxref("DOMString")}} です。 +

-

+

-

(text/xml や application/xhtml+xml のような、XML のコンテンツタイプで送出される必要があります。)

+

(text/xmlapplication/xhtml+xml のような、XML のコンテンツタイプで送出される必要があります。)

<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:svg="http://www.w3.org/2000/svg">
@@ -49,9 +54,9 @@ translation_of: Web/API/Element/localName
 </html>
 
-

+

-

ノードのローカル名は、ノードの修飾名の、コロンの後に続く部分です。修飾名は一般に、XML において、特定の XML 文書の名前空間の一部として使われます。例えば、ecomm:partners という修飾名において、 partners はローカル名、ecomm は接頭辞です。

+

ノードのローカル名とは、ノードの修飾名の、コロンの後に続く部分です。 XML において修飾名は、一般に特定の XML 文書の名前空間の一部として使われます。例えば、ecomm:partners という修飾名において、 partners はローカル名、ecomm は接頭辞です。

<ecomm:business id="soda_shop" type="brick_n_mortar" xmlns:ecomm="http://example.com/ecomm">
   <ecomm:partners>
@@ -62,37 +67,21 @@ translation_of: Web/API/Element/localName
 
-

注: {{Gecko("1.9.2")}} 以前、このプロパティは、HTML DOM における HTML 要素ではローカル名を大文字で返していました(XML DOM における XHTML 要素とは対照的に)。最新バージョンでは HTML5 に従い、このプロパティは内部の DOM ストレージの場合、HTML DOM における HTML要素と XHTML DOM における XHTML要素のいずれも、小文字で返します。{{domxref("element.tagName","tagName")}} プロパティは引き続き、HTML DOM における HTML要素では大文字で返します。

+

注: {{Gecko("1.9.2")}} 以前、このプロパティは、HTML DOM における HTML 要素ではローカル名を大文字で返していました(XML DOM における XHTML 要素とは対照的に)。最新バージョンでは HTML5 に従い、このプロパティは内部の DOM ストレージの場合、 HTML DOM における HTML要素と XHTML DOM における XHTML要素のいずれも、小文字で返します。{{domxref("element.tagName","tagName")}} プロパティは引き続き、 HTML DOM における HTML 要素では大文字で返します。

-

仕様

+

仕様書

- - - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName('DOM4', '#interface-element', 'Element.localName')}}{{Spec2('DOM4')}}初めての定義
+{{Specifications}} -

ブラウザ互換性

+

ブラウザーの互換性

-

{{Compat("api.Element.localName")}}

+

{{Compat}}

-

参考情報

+

関連情報

-- cgit v1.2.3-54-g00ecf