aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/node/prefix/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/node/prefix/index.html')
-rw-r--r--files/ja/web/api/node/prefix/index.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/files/ja/web/api/node/prefix/index.html b/files/ja/web/api/node/prefix/index.html
new file mode 100644
index 0000000000..40db95ab12
--- /dev/null
+++ b/files/ja/web/api/node/prefix/index.html
@@ -0,0 +1,51 @@
+---
+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">&lt;x:div onclick="alert(this.prefix)"/&gt;
+</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>