From c9e510644a1fc2a7dd129756305d7ef56d05a39d Mon Sep 17 00:00:00 2001
From: Masahiro FUJIMOTO <mfujimot@gmail.com>
Date: Wed, 7 Apr 2021 00:57:38 +0900
Subject: DOMTokenList.length を新規翻訳
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

2021/02/20 時点の英語版に基づき新規翻訳
---
 files/ja/web/api/domtokenlist/length/index.html | 67 +++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 files/ja/web/api/domtokenlist/length/index.html

(limited to 'files')

diff --git a/files/ja/web/api/domtokenlist/length/index.html b/files/ja/web/api/domtokenlist/length/index.html
new file mode 100644
index 0000000000..ef56427191
--- /dev/null
+++ b/files/ja/web/api/domtokenlist/length/index.html
@@ -0,0 +1,67 @@
+---
+title: DOMTokenList.length
+slug: Web/API/DOMTokenList/length
+tags:
+- API
+- DOM
+- DOMTokenList
+- Property
+- Reference
+- length
+translation_of: Web/API/DOMTokenList/length
+---
+<p>{{APIRef("DOM")}}</p>
+
+<p><strong><code>length</code></strong> は {{domxref("DOMTokenList")}} インターフェイスの読み取り専用プロパティで、オブジェクト内に格納されたオブジェクトの個数を表します。</p>
+
+<h2 id="Syntax">構文</h2>
+
+<pre class="brush: js"><var>tokenList</var>.length;</pre>
+
+<h3 id="Value">値</h3>
+
+<p><code>integer</code> です。</p>
+
+<h2 id="Examples">例</h2>
+
+<p>次の例は、 {{htmlelement("span")}} 要素に設定されたクラスのリストを {{domxref("Element.classList")}} を使用して <code>DOMTokenList</code> として取得し、そのリストの長さを <code>&lt;span&gt;</code> の {{domxref("Node.textContent")}} の中に書き込みます。</p>
+
+<p>最初に HTML です。</p>
+
+<pre class="brush: html">&lt;span class="a b c"&gt;&lt;/span&gt;</pre>
+
+<p>そして JavaScript です。</p>
+
+<pre class="brush: js">let span = document.querySelector("span");
+let classes = span.classList;
+let length = classes.length;
+
+span.textContent = `classList length = ${length}`;
+</pre>
+
+<p>出力結果は以下のようになります。</p>
+
+<p>{{ EmbedLiveSample('Examples', '100%', 60) }}</p>
+
+<h2 id="Specifications">仕様書</h2>
+
+<table class="standard-table">
+  <thead>
+    <tr>
+      <th scope="col">仕様書</th>
+      <th scope="col">状態</th>
+      <th scope="col">備考</th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr>
+      <td>{{SpecName('DOM WHATWG','#dom-domtokenlist-length','length')}}</td>
+      <td>{{Spec2('DOM WHATWG')}}</td>
+      <td>初回定義</td>
+    </tr>
+  </tbody>
+</table>
+
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat("api.DOMTokenList.length")}}</p>
-- 
cgit v1.2.3-54-g00ecf