@@ -148,7 +148,7 @@ first <a>following</a> <a for=tree>sibling</a> or null if it has no <a for=tree>
148
148
149
149
<li><p> Let <var> tokens</var> be a new <a>ordered set</a> .
150
150
151
- <li><p> <a for=list>For each</a> <var> token</var> in <var> inputTokens</var> , <a for=set>append</a>
151
+ <li><p> <a for=list>For each</a> <var> token</var> of <var> inputTokens</var> , <a for=set>append</a>
152
152
<var> token</var> to <var> tokens</var> .
153
153
154
154
<li> Return <var> tokens</var> .
@@ -896,7 +896,7 @@ correct defaults.</p>
896
896
<a>relative high resolution coarse time</a> given <var> time</var> and <var> event</var> 's
897
897
<a>relevant global object</a> .
898
898
899
- <li><p> <a for=map>For each</a> <var> member</var> → <var> value</var> in <var> dictionary</var> , if
899
+ <li><p> <a for=map>For each</a> <var> member</var> → <var> value</var> of <var> dictionary</var> , if
900
900
<var> event</var> has an attribute whose <a spec=webidl>identifier</a> is <var> member</var> , then
901
901
initialize that attribute to <var> value</var> .
902
902
@@ -1307,6 +1307,8 @@ property of the event being dispatched.
1307
1307
<li><p> Let <var> relatedTarget</var> be the result of <a>retargeting</a> <var> event</var> 's
1308
1308
<a for=Event>relatedTarget</a> against <var> target</var> .
1309
1309
1310
+ <li><p> Let <var> clearTargets</var> be false.
1311
+
1310
1312
<li>
1311
1313
<p> If <var> target</var> is not <var> relatedTarget</var> or <var> target</var> is <var> event</var> 's
1312
1314
<a for=Event>relatedTarget</a> :
@@ -1407,18 +1409,17 @@ property of the event being dispatched.
1407
1409
<li><p> Let <var> clearTargetsStruct</var> be the last struct in <var> event</var> 's
1408
1410
<a for=Event>path</a> whose <a for=Event/path>shadow-adjusted target</a> is non-null.
1409
1411
1410
- <li><p> Let <var> clearTargets</var> be true if <var> clearTargetsStruct</var> 's
1411
- <a for=Event/path>shadow-adjusted target</a> , <var> clearTargetsStruct</var> 's
1412
- <a for=Event/path>relatedTarget</a> , or an {{EventTarget}} object in
1413
- <var> clearTargetsStruct</var> 's <a for=Event/path>touch target list</a> is a <a for=/>node</a>
1414
- and its <a for=tree>root</a> is a <a for=/>shadow root</a> ; otherwise false.
1412
+ <li><p> If <var> clearTargetsStruct</var> 's <a for=Event/path>shadow-adjusted target</a> ,
1413
+ <var> clearTargetsStruct</var> 's <a for=Event/path>relatedTarget</a> , or an {{EventTarget}} object
1414
+ in <var> clearTargetsStruct</var> 's <a for=Event/path>touch target list</a> is a <a for=/>node</a>
1415
+ whose <a for=tree>root</a> is a <a for=/>shadow root</a> : set <var> clearTargets</var> to true.
1415
1416
1416
1417
<li><p> If <var> activationTarget</var> is non-null and <var> activationTarget</var> has
1417
1418
<a for=EventTarget>legacy-pre-activation behavior</a> , then run <var> activationTarget</var> 's
1418
1419
<a for=EventTarget>legacy-pre-activation behavior</a> .
1419
1420
1420
1421
<li>
1421
- <p> <a for=list>For each</a> <var> struct</var> in <var> event</var> 's <a for=Event>path</a> , in
1422
+ <p> <a for=list>For each</a> <var> struct</var> of <var> event</var> 's <a for=Event>path</a> , in
1422
1423
reverse order:
1423
1424
1424
1425
<ol>
@@ -1433,7 +1434,7 @@ property of the event being dispatched.
1433
1434
</ol>
1434
1435
1435
1436
<li>
1436
- <p> <a for=list>For each</a> <var> struct</var> in <var> event</var> 's <a for=Event>path</a> :
1437
+ <p> <a for=list>For each</a> <var> struct</var> of <var> event</var> 's <a for=Event>path</a> :
1437
1438
1438
1439
<ol>
1439
1440
<li><p> If <var> struct</var> 's <a for=Event/path>shadow-adjusted target</a> is non-null, then
@@ -1593,7 +1594,7 @@ and an optional <var>legacyOutputDidListenersThrowFlag</var>, run these steps:
1593
1594
<li><p> Let <var> found</var> be false.
1594
1595
1595
1596
<li>
1596
- <p> <a for=list>For each</a> <var> listener</var> in <var> listeners</var> , whose
1597
+ <p> <a for=list>For each</a> <var> listener</var> of <var> listeners</var> , whose
1597
1598
<a for="event listener">removed</a> is false:
1598
1599
1599
1600
<ol>
@@ -4812,7 +4813,7 @@ steps are:
4812
4813
4813
4814
<ol>
4814
4815
<li>
4815
- <p> <a for=list>For each</a> <var> attr</var> in <var> node2</var> 's
4816
+ <p> <a for=list>For each</a> <var> attr</var> of <var> node2</var> 's
4816
4817
<a for=Element>attribute list</a> :
4817
4818
4818
4819
<ol>
@@ -7381,7 +7382,7 @@ steps:
7381
7382
<li>
7382
7383
<p> If this {{NamedNodeMap}} object's <a for=NamedNodeMap>element</a> is in the
7383
7384
<a>HTML namespace</a> and its <a for=Node>node document</a> is an <a>HTML document</a> , then
7384
- <a for=list>for each</a> <var> name</var> in <var> names</var> :
7385
+ <a for=list>for each</a> <var> name</var> of <var> names</var> :
7385
7386
7386
7387
<ol>
7387
7388
<li><p> Let <var> lowercaseName</var> be <var> name</var> , in <a>ASCII lowercase</a> .
@@ -10080,7 +10081,7 @@ method steps are:
10080
10081
10081
10082
<ol>
10082
10083
<li>
10083
- <p> <a for=list>For each</a> <var> token</var> in <var> tokens</var> :
10084
+ <p> <a for=list>For each</a> <var> token</var> of <var> tokens</var> :
10084
10085
10085
10086
<ol>
10086
10087
<li><p> If <var> token</var> is the empty string, then <a>throw</a> a "{{SyntaxError!!exception}} "
@@ -10090,7 +10091,7 @@ method steps are:
10090
10091
"{{InvalidCharacterError!!exception}} " {{DOMException}} .
10091
10092
</ol>
10092
10093
10093
- <li><p> <a for=list>For each</a> <var> token</var> in <var> tokens</var> , <a for=set>append</a>
10094
+ <li><p> <a for=list>For each</a> <var> token</var> of <var> tokens</var> , <a for=set>append</a>
10094
10095
<var> token</var> to <a>this</a> 's <a>token set</a> .
10095
10096
10096
10097
<li><p> Run the <a>update steps</a> .
@@ -10102,7 +10103,7 @@ method steps are:
10102
10103
10103
10104
<ol>
10104
10105
<li>
10105
- <p> <a for=list>For each</a> <var> token</var> in <var> tokens</var> :
10106
+ <p> <a for=list>For each</a> <var> token</var> of <var> tokens</var> :
10106
10107
10107
10108
<ol>
10108
10109
<li><p> If <var> token</var> is the empty string, then <a>throw</a> a "{{SyntaxError!!exception}} "
@@ -10580,6 +10581,7 @@ Sergey G. Grekhov,
10580
10581
Shiki Okasaka,
10581
10582
Shinya Kawanaka,
10582
10583
Simon Pieters,
10584
+ Simon Wülker,
10583
10585
Stef Busking,
10584
10586
Steve Byrne,
10585
10587
Stig Halvorsen,
0 commit comments