Skip to content

Commit 333c7c6

Browse files
[DOM] Pass better ancestor/root information to (re)moving steps whatwg/dom@73de9e5
1 parent 7ec4214 commit 333c7c6

1 file changed

Lines changed: 19 additions & 36 deletions

File tree

DOM4-ja.html

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@
519519
%親:parent
520520
%新-親:newParent
521521
%旧-親:oldParent
522-
%旧-親か~NULL:-
522+
%下位treeの根か:isSubtreeRoot
523523
%親は接続されているか:isParentConnected
524524
%構造体:struct
525525
%呼出n~target:invocationTarget
@@ -9615,10 +9615,8 @@ <h4 title="Mutation algorithms">4.2.3. 変異~algo</h4>
96159615
を定義してもヨイ。
96169616
この~algoは、
96179617
`~nodeを移動する$~algo内から,
9618-
( 移動された`~node$【!movedNode】, [
9619-
旧-親である`~node$/~NULL
9620-
]【!oldParent】 )
9621-
を渡して呼出される†。
9618+
( `~node$ %移動された~node, 真偽値 %下位treeの根か, `~node$ %旧-親 )
9619+
を渡して呼出される。
96229620
`挿入-時の手続き$と同様に,この手続きは:
96239621
</p>
96249622
<ul>
@@ -9637,14 +9635,8 @@ <h4 title="Mutation algorithms">4.2.3. 変異~algo</h4>
96379635
前項に挙げたものを非同期に行うための`大域~taskを~queueする$
96389636
</li>
96399637
</ul>
9640-
9641-
<p class="trans-note">【†
9642-
この~algoに渡される引数(旧-親)は`変更される予定にあり@https://github.com/whatwg/dom/commit/73de9e5e1bfe581397d58d0b10b4da448d973c8a$、
9643-
すでに `HTML$r からは それに従って利用されているが、
9644-
まだ,この仕様には反映されていない。
9645-
】</p>
96469638
9647-
Specifications may define moving steps for all or some nodes. The algorithm is passed a node movedNode, and a node-or-null oldParent as indicated in the move algorithm below. Like the insertion steps, these steps must not modify the node tree that movedNode participates in, create browsing contexts, fire events, or otherwise execute JavaScript. These steps may queue tasks to do these things asynchronously, however.
9639+
Specifications may define moving steps for all or some nodes. The algorithm is passed a node movedNode, a boolean isSubtreeRoot, and a node oldAncestor as indicated in the move algorithm below. Like the insertion steps, these steps must not modify the node tree that movedNode participates in, create browsing contexts, fire events, or otherwise execute JavaScript. These steps may queue tasks to do these things asynchronously, however.
96489640
</div>
96499641

96509642
<!--% 移動 -->
@@ -9962,32 +9954,31 @@ <h4 title="Mutation algorithms">4.2.3. 変異~algo</h4>
99629954
</p>
99639955
<ol>
99649956
<li>
9965-
%旧-親か~NULL ~LET [
9966-
%広義-子孫 ~EQ %~node ならば %旧-親 /
9967-
~ELSE_ ~NULL
9957+
%下位treeの根か ~LET ~IS[
9958+
%広義-子孫 ~EQ %~node
99689959
99699960
9970-
↓</li>
9961+
Let isSubtreeRoot be true if inclusiveDescendant is node; otherwise false.
9962+
</li>
99719963
<li>
99729964
<p>
99739965
`適用-可能な仕様$にて %広義-子孫 用に`定義された各$( `移動-時の手続き$ %手続き )
99749966
に対し
99759967
9976-
%手続き( %広義-子孫, %旧-親か~NULL )
9968+
%手続き( %広義-子孫, %下位treeの根か, %旧-親 )
99779969
9978-
If inclusiveDescendant is node, then run the moving steps with inclusiveDescendant and oldParent.\
9979-
Otherwise, run the moving steps with inclusiveDescendant and null.
9970+
Run the moving steps with inclusiveDescendant, isSubtreeRoot, and oldParent.
99809971
</p>
99819972

99829973
<p class="note">注記:
99839974
`~nodeを移動する$~algoは、[
99849975
`~nodeを子の直前に挿入する$, `~nodeを除去する$
99859976
]とは別々な~primitiveなので,
9986-
%広義-子孫 用に伝統的な
9977+
%広義-子孫 用に
99879978
`挿入-時の手続き$/`除去-時の手続き$
99889979
]を呼出さない。
99899980
9990-
Because the move algorithm is a separate primitive from insert and remove, it does not invoke the traditional insertion steps or removing steps for inclusiveDescendant.
9981+
Because the move algorithm is a separate primitive from insert and remove, it does not invoke the insertion steps or removing steps for inclusiveDescendant.
99919982
</p>
99929983
</li>
99939984
<li>
@@ -10277,20 +10268,12 @@ <h4 title="Mutation algorithms">4.2.3. 変異~algo</h4>
1027710268
を定義してもヨイ。
1027810269
この~algoには、
1027910270
`~nodeを除去する$ ~algoにて指示されるとおり,
10280-
( `~node$ %除去された~node, [
10281-
`~node$/ ~NULL
10282-
] %旧-親 )
10283-
が渡される†。
10271+
( `~node$ %除去された~node, 真偽値 %下位treeの根か, `~node$ %旧-親 )
10272+
が渡される。
1028410273
10285-
Specifications may define removing steps for all or some nodes. The algorithm is passed a node removedNode and a node-or-null oldParent, as indicated in the remove algorithm below.
10274+
Specifications may define removing steps for all or some nodes. The algorithm is passed a node removedNode, a boolean isSubtreeRoot, and a node oldAncestor as indicated in the remove algorithm below.
1028610275
</p>
1028710276

10288-
<p class="trans-note">【†
10289-
この~algoに渡される引数(旧-親)は`変更される予定にあり@https://github.com/whatwg/dom/commit/73de9e5e1bfe581397d58d0b10b4da448d973c8a$,
10290-
すでに `HTML$r からは それに従って利用されているが、
10291-
まだ,この仕様には反映されていない。
10292-
】</p>
10293-
1029410277
<!--% 除去 -->
1029510278
<div class="algo">
1029610279
<p>
@@ -10383,9 +10366,9 @@ <h4 title="Mutation algorithms">4.2.3. 変異~algo</h4>
1038310366
`適用-可能な仕様$にて %~node 用に`定義された各$( `除去-時の手続き$ %手続き )
1038410367
に対し
1038510368
10386-
%手続き( %~node, %親 )
10369+
%手続き( %~node, ~T, %親 )
1038710370
10388-
Run the removing steps with node and parent.
10371+
Run the removing steps with node, true, and parent.
1038910372
</li>
1039010373
<li>
1039110374
%親は接続されているか ~LET ~IS[
@@ -10430,9 +10413,9 @@ <h4 title="Mutation algorithms">4.2.3. 変異~algo</h4>
1043010413
`適用-可能な仕様$にて %子孫 用に`定義された各$( `除去-時の手続き$ %手続き )
1043110414
に対し
1043210415
10433-
%手続き( %子孫, ~NULL )
10416+
%手続き( %子孫, ~F, %親 )
1043410417
10435-
Run the removing steps with descendant and null.
10418+
Run the removing steps with descendant, false, and parent.
1043610419
</li>
1043710420
<li>
1043810421
~IF[

0 commit comments

Comments
 (0)