diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/mutationrecord | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/ja/web/api/mutationrecord')
| -rw-r--r-- | files/ja/web/api/mutationrecord/index.html | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/files/ja/web/api/mutationrecord/index.html b/files/ja/web/api/mutationrecord/index.html new file mode 100644 index 0000000000..a407cbccd2 --- /dev/null +++ b/files/ja/web/api/mutationrecord/index.html @@ -0,0 +1,118 @@ +--- +title: MutationRecord +slug: Web/API/MutationRecord +tags: + - API + - Advanced + - DOM + - DOM Reference + - NeedsContent + - Reference +translation_of: Web/API/MutationRecord +--- +<p><strong><code>MutationRecord</code></strong> とは、DOM に生じた個々の変更を表すオブジェクトです。このオブジェクトは {{domxref("MutationObserver")}} のコールバック関数に渡されます。</p> + +<p>{{英語版章題("Properties")}}</p> + +<h2 id="プロパティ">プロパティ</h2> + +<table class="standard-table"> + <tbody> + <tr> + <td class="header">プロパティ</td> + <td class="header">型</td> + <td class="header">意味</td> + </tr> + <tr> + <td>{{domxref("MutationRecord.type")}}</td> + <td><code>String</code></td> + <td>属性値の変更の場合は <code>"attributes"</code>、<code>CharacterData</code> ノードに対する変更の場合は <code>"characterData"</code>、ノードのツリーに対する変更の場合は <code>"childList"</code> を返します。</td> + </tr> + <tr> + <td>{{domxref("MutationRecord.target")}}</td> + <td><code>{{domxref("Node")}}</code></td> + <td> + <p>変更の影響を受けたノードを返します。戻り値は {{domxref("MutationRecord.type")}} に応じて以下のように変わります。</p> + + <p><code>attributes</code> の場合、属性が変更された要素となります。</p> + + <p><code>characterData</code> の場合、<code>CharacterData</code> ノードとなります。</p> + + <p><code>childList</code> の場合、子ノードが変更されたノードとなります。</p> + </td> + </tr> + <tr> + <td>{{domxref("MutationRecord.addedNodes")}}</td> + <td><code>{{domxref("NodeList")}}</code></td> + <td> + <p>追加されたノードを返します。何もノードが追加されていなかった場合は、空の {{domxref("NodeList")}} が返されます。</p> + </td> + </tr> + <tr> + <td>{{domxref("MutationRecord.removedNodes")}}</td> + <td><code>{{domxref("NodeList")}}</code></td> + <td>削除されたノードを返します。何もノードが削除されていなかった場合は、空の {{domxref("NodeList")}} が返されます。</td> + </tr> + <tr> + <td>{{domxref("MutationRecord.previousSibling")}}</td> + <td><code>{{domxref("Node")}}</code></td> + <td> + <p>追加あるいは削除されたノードの直前にあるノード、もしくは <code>null</code> を返します。</p> + </td> + </tr> + <tr> + <td>{{domxref("MutationRecord.nextSibling")}}</td> + <td><code>{{domxref("Node")}}</code></td> + <td>追加あるいは削除されたノードの直後にあるノード、もしくは <code>null</code> を返します。</td> + </tr> + <tr> + <td>{{domxref("MutationRecord.attributeName")}}</td> + <td><code>String</code></td> + <td>変更された属性のローカル名、もしくは <code>null</code> を返します。</td> + </tr> + <tr> + <td>{{domxref("MutationRecord.attributeNamespace")}}</td> + <td><code>String</code></td> + <td>変更された属性の名前空間、もしくは <code>null</code> を返します。</td> + </tr> + <tr> + <td>{{domxref("MutationRecord.oldValue")}}</td> + <td><code>String</code></td> + <td> + <p>戻り値は {{domxref("MutationRecord.type")}} に応じて以下のように変わります。</p> + + <p><code>attributes</code> の場合、変更された属性の変更前の属性値となります。</p> + + <p><code>characterData</code> の場合、変更されたノードの変更前のデータとなります。</p> + + <p><code>childList</code> の場合、<code>null</code> となります。</p> + </td> + </tr> + </tbody> +</table> + +<p>{{英語版章題("Specifications")}}</p> + +<h2 id="Specifications" name="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', '#mutationrecord', 'MutationRecord')}}</td> + <td>{{ Spec2('DOM WHATWG') }}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('DOM4', '#mutationrecord', 'MutationRecord')}}</td> + <td>{{ Spec2('DOM4') }}</td> + <td> </td> + </tr> + </tbody> +</table> |
