diff options
Diffstat (limited to 'files/ja/web/api')
-rw-r--r-- | files/ja/web/api/element/childelementcount/index.html (renamed from files/ja/web/api/parentnode/childelementcount/index.html) | 3 | ||||
-rw-r--r-- | files/ja/web/api/element/namespaceuri/index.html (renamed from files/ja/web/api/node/namespaceuri/index.html) | 3 | ||||
-rw-r--r-- | files/ja/web/api/node/localname/index.html | 62 | ||||
-rw-r--r-- | files/ja/web/api/node/prefix/index.html | 51 |
4 files changed, 4 insertions, 115 deletions
diff --git a/files/ja/web/api/parentnode/childelementcount/index.html b/files/ja/web/api/element/childelementcount/index.html index 6e1a4b7ea7..a06357d366 100644 --- a/files/ja/web/api/parentnode/childelementcount/index.html +++ b/files/ja/web/api/element/childelementcount/index.html @@ -1,12 +1,13 @@ --- title: ParentNode.childElementCount -slug: Web/API/ParentNode/childElementCount +slug: Web/API/Element/childElementCount tags: - API - DOM - ParentNode - Property translation_of: Web/API/ParentNode/childElementCount +original_slug: Web/API/ParentNode/childElementCount --- <div>{{ APIRef("DOM") }}</div> diff --git a/files/ja/web/api/node/namespaceuri/index.html b/files/ja/web/api/element/namespaceuri/index.html index e074636d50..476f51c8b1 100644 --- a/files/ja/web/api/node/namespaceuri/index.html +++ b/files/ja/web/api/element/namespaceuri/index.html @@ -1,12 +1,13 @@ --- title: Node.namespaceURI -slug: Web/API/Node/namespaceURI +slug: Web/API/Element/namespaceURI tags: - DOM - Gecko - Gecko DOM Reference - 要更新 translation_of: Web/API/Node/namespaceURI +original_slug: Web/API/Node/namespaceURI --- <p>{{ ApiRef() }}</p> <h3 id=".E6.A6.82.E8.A6.81" name=".E6.A6.82.E8.A6.81">概要</h3> diff --git a/files/ja/web/api/node/localname/index.html b/files/ja/web/api/node/localname/index.html deleted file mode 100644 index 01ba8fbba6..0000000000 --- a/files/ja/web/api/node/localname/index.html +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: Node.localName -slug: Web/API/Node/localName -tags: - - DOM - - Gecko - - Gecko DOM Reference - - Node - - 要更新 -translation_of: Web/API/Node/localName ---- -<p>{{ ApiRef() }}</p> -<h3 id=".E6.A6.82.E8.A6.81" name=".E6.A6.82.E8.A6.81">概要</h3> -<p>このノードの修飾名のローカル部分を返します。</p> -<h3 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h3> -<pre class="eval"><em>name</em> = <em>element</em>.localName -</pre> -<ul> - <li><code>name</code> は文字列でのローカル名です(詳細は下の{{ Anch("注記") }} を参照してください)</li> -</ul> -<h3 id=".E4.BE.8B" name=".E4.BE.8B">例</h3> -<p>(<code>text/xml</code> や <code>application/xhtml+xml</code> のような XML コンテンツタイプで提供されなくてはなりません。)</p> -<pre class="eval"><html xmlns="<span class="nowiki">http://www.w3.org/1999/xhtml</span>" - xmlns:svg="<span class="nowiki">http://www.w3.org/2000/svg</span>"> -<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> -</pre> -<h3 id=".E6.B3.A8.E8.A8.98" name=".E6.B3.A8.E8.A8.98">注記</h3> -<p>ノードのローカル名はノードの修飾名のコロン(:)の後ろの部分です。修飾名は特定の XML 文書の名前空間の一部として XML の中で特に使われます。例えば、修飾名 <code>ecomm:partners</code> の中で <code>partners</code> がローカル名で <code>ecomm</code> が接頭辞です。</p> -<pre><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> -</pre> -<p><span class="comment">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.</span></p> -<p> {{ 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 要素についても今まで通り大文字のローカル名を返します。") }}</p> -<p><code>ELEMENT_NODE</code> と <code>ATTRIBUTE_NODE</code> 以外の<a href="/ja/DOM/element.nodeType" title="ja/DOM/element.nodeType">種類</a>全てに属すノードでは、常に <code>localName</code> は <code>null</code> です。</p> -<h3 id=".E5.8F.82.E7.85.A7" name=".E5.8F.82.E7.85.A7">参照</h3> -<p><a href="/ja/DOM/element.namespaceURI" title="ja/DOM/element.namespaceURI">element.namespaceURI</a></p> -<h3 id=".E4.BB.95.E6.A7.98" name=".E4.BB.95.E6.A7.98">仕様</h3> -<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-NodeNSLocalN">DOM Level 2 Core: Node.localName</a></p> diff --git a/files/ja/web/api/node/prefix/index.html b/files/ja/web/api/node/prefix/index.html deleted file mode 100644 index 40db95ab12..0000000000 --- a/files/ja/web/api/node/prefix/index.html +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: Node.prefix -slug: Web/API/Node/prefix -tags: - - DOM - - Gecko - - Node -translation_of: Web/API/Node/prefix ---- -<div>{{ApiRef}}</div> - -<h2 id="Summary" name="Summary">概要</h2> - -<p><code>prefix</code> は、特定のノードの名前空間の 接頭辞 (prefix) を返します。接頭辞がなければ <code>null</code> を返します。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox"><var>string</var> = element.prefix -</pre> - -<h2 id="Examples" name="Examples">例</h2> - -<p>次の例は "x" をアラート表示します。</p> - -<pre class="brush:xml"><x:div onclick="alert(this.prefix)"/> -</pre> - -<h2 id="Notes" name="Notes">注記</h2> - -<p>これは、名前空間を解するパーサを使っている場合(つまり、文書が XML mime 型の場合など)にのみ機能します。HTML 文書では機能しません。</p> - -<h2 id="Specification" name="Specification">仕様書</h2> - -<ul> - <li><a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-NodeNSPrefix">Node.prefix</a> (DOM2 より導入)</li> -</ul> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> - - - -<p>{{Compat("api.Node.prefix")}}</p> - -<h2 id="関連情報">関連情報</h2> - -<ul> - <li>{{domxref("Node.localName")}}</li> - <li>{{domxref("Node.namespaceURI")}}</li> - <li>{{domxref("Element.prefix")}}</li> - <li>{{domxref("Attr.prefix")}}</li> -</ul> |