diff options
Diffstat (limited to 'files/ja/web/api/range/startcontainer/index.html')
-rw-r--r-- | files/ja/web/api/range/startcontainer/index.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/files/ja/web/api/range/startcontainer/index.html b/files/ja/web/api/range/startcontainer/index.html new file mode 100644 index 0000000000..9f9ca075e5 --- /dev/null +++ b/files/ja/web/api/range/startcontainer/index.html @@ -0,0 +1,55 @@ +--- +title: Range.startContainer +slug: Web/API/Range/startContainer +translation_of: Web/API/Range/startContainer +--- +<p>{{ApiRef("DOM")}}</p> + +<p><code><strong>Range.startContainer</strong></code>読み取り専用プロパティは、<code>Range</code>が開始する{{domxref("Node")}}を返します。ノードの開始位置を変更するには、{{domxref("Range.setStart()")}}メソッドのいずれかを使用します。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>startRangeNode</em> = <em>range</em>.startContainer; +</pre> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js notranslate">range = document.createRange(); +range.setStart(startNode,startOffset); +range.setEnd(endNode,endOffset); +startRangeNode = range.startContainer; +</pre> + +<h2 id="Specification" name="Specification">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様</th> + <th scope="col">ステータス</th> + <th scope="col">コメント</th> + </tr> + <tr> + <td>{{SpecName('DOM WHATWG', '#dom-range-startcontainer', 'Range.endContainer')}}</td> + <td>{{Spec2('DOM WHATWG')}}</td> + <td>変更なし</td> + </tr> + <tr> + <td>{{SpecName('DOM2 Traversal_Range', 'ranges.html#Level-2-Range-attr-startParent', 'Range.startContainer')}}</td> + <td>{{Spec2('DOM2 Traversal_Range')}}</td> + <td>初期仕様</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザの互換性">ブラウザの互換性</h2> + + + +<p>{{Compat("api.Range.startContainer")}}</p> + +<h2 id="関連情報">関連情報</h2> + +<ul> + <li><a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">The DOM interfaces index</a></li> +</ul> |