diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-25 00:44:22 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-03-05 22:14:26 +0900 |
| commit | 7b582dd1d008c1daee40ac27dd2f72b067438652 (patch) | |
| tree | dbeb5ffe16950780c957a49ae36546c1b6b1d157 /files/ja/web/api/node/parentelement/index.html | |
| parent | d132914ab964aec5d9394d7e11725ef5d1ce339d (diff) | |
| download | translated-content-7b582dd1d008c1daee40ac27dd2f72b067438652.tar.gz translated-content-7b582dd1d008c1daee40ac27dd2f72b067438652.tar.bz2 translated-content-7b582dd1d008c1daee40ac27dd2f72b067438652.zip | |
Web/API/Node 以下のプロパティの文書を移行
Diffstat (limited to 'files/ja/web/api/node/parentelement/index.html')
| -rw-r--r-- | files/ja/web/api/node/parentelement/index.html | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/files/ja/web/api/node/parentelement/index.html b/files/ja/web/api/node/parentelement/index.html deleted file mode 100644 index e121601c07..0000000000 --- a/files/ja/web/api/node/parentelement/index.html +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: Node.parentElement -slug: Web/API/Node/parentElement -tags: - - DOM - - Element - - Node - - Property - - parent -translation_of: Web/API/Node/parentElement ---- -<div> -<div>{{APIRef("DOM")}}</div> -</div> - -<p><strong>Node.parentElement</strong>のread-only プロパティはDOM ノード上の親の {{domxref("Element")}} を返します。親ノードが存在しない場合や親ノードが DOM {{domxref("Element")}} で無い場合、<code>null</code> が返ります。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox"><var>parentElement</var> = <em>node</em>.parentElement</pre> - -<p><code>parentElement</code>は現nodeの親elementです。型は必ずDOM {{domxref("Element")}} オブジェクトか<code>nullです</code>。</p> - -<h2 id="Example" name="Example">例</h2> - -<pre class="brush:js">if (node.parentElement) { - node.parentElement.style.color = "red"; -}</pre> - -<h2 id="Specification" name="Specification">仕様</h2> - -<ul> - <li>{{spec("http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#parent-element", "DOM Level 4: Node.parentElement", "WD")}}</li> -</ul> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> - -<p>{{Compat("api.Node.parentElement")}}</p> - -<p>一部のブラウザーでは、<code>parentElement</code>プロパティは {{domxref("Element")}} ノードでのみ定義されており、特にテキストノードに対して定義されていない場合がある点に注意して下さい。</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li>{{domxref("Node.parentNode")}}</li> -</ul> |
