aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/documentfragment
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-08-27 20:33:27 +0900
committerGitHub <noreply@github.com>2021-08-27 20:33:27 +0900
commit5192b3e5cfef0c1afca0ce844f9ab6b4d14259e9 (patch)
treed0de552845711f55975c51d4825ab9840d619681 /files/ja/web/api/documentfragment
parenteb01d7c89c69ac0b49110d31eec8648fb5fd4805 (diff)
downloadtranslated-content-5192b3e5cfef0c1afca0ce844f9ab6b4d14259e9.tar.gz
translated-content-5192b3e5cfef0c1afca0ce844f9ab6b4d14259e9.tar.bz2
translated-content-5192b3e5cfef0c1afca0ce844f9ab6b4d14259e9.zip
旧 ParentNode の childElementCount プロパティの文書を整備 (#2094)
- 2021/08/15 時点の英語版に同期
Diffstat (limited to 'files/ja/web/api/documentfragment')
-rw-r--r--files/ja/web/api/documentfragment/childelementcount/index.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/files/ja/web/api/documentfragment/childelementcount/index.html b/files/ja/web/api/documentfragment/childelementcount/index.html
new file mode 100644
index 0000000000..16bc5ed135
--- /dev/null
+++ b/files/ja/web/api/documentfragment/childelementcount/index.html
@@ -0,0 +1,48 @@
+---
+title: DocumentFragment.childElementCount
+slug: Web/API/DocumentFragment/childElementCount
+tags:
+ - API
+ - DOM
+ - Property
+ - Reference
+browser-compat: api.DocumentFragment.childElementCount
+translation_of: Web/API/DocumentFragment/childElementCount
+---
+<div>{{ APIRef("DOM") }}</div>
+
+<p><code><strong>Document.childElementCount</strong></code> は読み取り専用のプロパティで、 <code>DocumentFragment</code> の子要素の数を返します。</p>
+
+<p>特定の要素の子要素の数を取得する場合は、 {{domxref("Element.childElementCount")}} を参照してください。</p>
+
+<h2 id="Syntax">構文</h2>
+
+<pre class="brush: js"><em>fragment</em>.childElementCount;
+</pre>
+
+<h2 id="Example">例</h2>
+
+<pre class="brush:js">
+let fragment = new DocumentFragment()
+fragment.childElementCount; // 0
+
+let paragraph = document.createElement('p')
+fragment.appendChild(paragraph)
+
+fragment.childElementCount; // 1
+</pre>
+
+<h2 id="Specifications">仕様書</h2>
+
+{{Specifications}}
+
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat}}</p>
+
+<h2 id="See_also">関連情報</h2>
+
+<ul>
+ <li>{{domxref("Element.childElementCount")}}</li>
+ <li>{{domxref("Document.childElementCount")}}</li>
+</ul>