@@ -146,7 +146,7 @@ first <a>following</a> <a for=tree>sibling</a> or null if it has no <a for=tree>
146
146
147
147
<li><p> Let <var> tokens</var> be a new <a>ordered set</a> .
148
148
149
- <li><p> <a for=list>For each</a> <var> token</var> in <var> inputTokens</var> , <a for=set>append</a>
149
+ <li><p> <a for=list>For each</a> <var> token</var> of <var> inputTokens</var> , <a for=set>append</a>
150
150
<var> token</var> to <var> tokens</var> .
151
151
152
152
<li> Return <var> tokens</var> .
@@ -894,7 +894,7 @@ correct defaults.</p>
894
894
<a>relative high resolution coarse time</a> given <var> time</var> and <var> event</var> 's
895
895
<a>relevant global object</a> .
896
896
897
- <li><p> <a for=map>For each</a> <var> member</var> → <var> value</var> in <var> dictionary</var> , if
897
+ <li><p> <a for=map>For each</a> <var> member</var> → <var> value</var> of <var> dictionary</var> , if
898
898
<var> event</var> has an attribute whose <a spec=webidl>identifier</a> is <var> member</var> , then
899
899
initialize that attribute to <var> value</var> .
900
900
@@ -1305,6 +1305,8 @@ property of the event being dispatched.
1305
1305
<li><p> Let <var> relatedTarget</var> be the result of <a>retargeting</a> <var> event</var> 's
1306
1306
<a for=Event>relatedTarget</a> against <var> target</var> .
1307
1307
1308
+ <li><p> Let <var> clearTargets</var> be false.
1309
+
1308
1310
<li>
1309
1311
<p> If <var> target</var> is not <var> relatedTarget</var> or <var> target</var> is <var> event</var> 's
1310
1312
<a for=Event>relatedTarget</a> :
@@ -1405,18 +1407,17 @@ property of the event being dispatched.
1405
1407
<li><p> Let <var> clearTargetsStruct</var> be the last struct in <var> event</var> 's
1406
1408
<a for=Event>path</a> whose <a for=Event/path>shadow-adjusted target</a> is non-null.
1407
1409
1408
- <li><p> Let <var> clearTargets</var> be true if <var> clearTargetsStruct</var> 's
1409
- <a for=Event/path>shadow-adjusted target</a> , <var> clearTargetsStruct</var> 's
1410
- <a for=Event/path>relatedTarget</a> , or an {{EventTarget}} object in
1411
- <var> clearTargetsStruct</var> 's <a for=Event/path>touch target list</a> is a <a for=/>node</a>
1412
- and its <a for=tree>root</a> is a <a for=/>shadow root</a> ; otherwise false.
1410
+ <li><p> If <var> clearTargetsStruct</var> 's <a for=Event/path>shadow-adjusted target</a> ,
1411
+ <var> clearTargetsStruct</var> 's <a for=Event/path>relatedTarget</a> , or an {{EventTarget}} object
1412
+ in <var> clearTargetsStruct</var> 's <a for=Event/path>touch target list</a> is a <a for=/>node</a>
1413
+ whose <a for=tree>root</a> is a <a for=/>shadow root</a> : set <var> clearTargets</var> to true.
1413
1414
1414
1415
<li><p> If <var> activationTarget</var> is non-null and <var> activationTarget</var> has
1415
1416
<a for=EventTarget>legacy-pre-activation behavior</a> , then run <var> activationTarget</var> 's
1416
1417
<a for=EventTarget>legacy-pre-activation behavior</a> .
1417
1418
1418
1419
<li>
1419
- <p> <a for=list>For each</a> <var> struct</var> in <var> event</var> 's <a for=Event>path</a> , in
1420
+ <p> <a for=list>For each</a> <var> struct</var> of <var> event</var> 's <a for=Event>path</a> , in
1420
1421
reverse order:
1421
1422
1422
1423
<ol>
@@ -1431,7 +1432,7 @@ property of the event being dispatched.
1431
1432
</ol>
1432
1433
1433
1434
<li>
1434
- <p> <a for=list>For each</a> <var> struct</var> in <var> event</var> 's <a for=Event>path</a> :
1435
+ <p> <a for=list>For each</a> <var> struct</var> of <var> event</var> 's <a for=Event>path</a> :
1435
1436
1436
1437
<ol>
1437
1438
<li><p> If <var> struct</var> 's <a for=Event/path>shadow-adjusted target</a> is non-null, then
@@ -1591,7 +1592,7 @@ and an optional <var>legacyOutputDidListenersThrowFlag</var>, run these steps:
1591
1592
<li><p> Let <var> found</var> be false.
1592
1593
1593
1594
<li>
1594
- <p> <a for=list>For each</a> <var> listener</var> in <var> listeners</var> , whose
1595
+ <p> <a for=list>For each</a> <var> listener</var> of <var> listeners</var> , whose
1595
1596
<a for="event listener">removed</a> is false:
1596
1597
1597
1598
<ol>
@@ -4802,7 +4803,7 @@ steps are:
4802
4803
4803
4804
<ol>
4804
4805
<li>
4805
- <p> <a for=list>For each</a> <var> attr</var> in <var> node2</var> 's
4806
+ <p> <a for=list>For each</a> <var> attr</var> of <var> node2</var> 's
4806
4807
<a for=Element>attribute list</a> :
4807
4808
4808
4809
<ol>
@@ -7370,7 +7371,7 @@ steps:
7370
7371
<li>
7371
7372
<p> If this {{NamedNodeMap}} object's <a for=NamedNodeMap>element</a> is in the
7372
7373
<a>HTML namespace</a> and its <a for=Node>node document</a> is an <a>HTML document</a> , then
7373
- <a for=list>for each</a> <var> name</var> in <var> names</var> :
7374
+ <a for=list>for each</a> <var> name</var> of <var> names</var> :
7374
7375
7375
7376
<ol>
7376
7377
<li><p> Let <var> lowercaseName</var> be <var> name</var> , in <a>ASCII lowercase</a> .
@@ -10050,7 +10051,7 @@ method steps are:
10050
10051
10051
10052
<ol>
10052
10053
<li>
10053
- <p> <a for=list>For each</a> <var> token</var> in <var> tokens</var> :
10054
+ <p> <a for=list>For each</a> <var> token</var> of <var> tokens</var> :
10054
10055
10055
10056
<ol>
10056
10057
<li><p> If <var> token</var> is the empty string, then <a>throw</a> a "{{SyntaxError!!exception}} "
@@ -10060,7 +10061,7 @@ method steps are:
10060
10061
"{{InvalidCharacterError!!exception}} " {{DOMException}} .
10061
10062
</ol>
10062
10063
10063
- <li><p> <a for=list>For each</a> <var> token</var> in <var> tokens</var> , <a for=set>append</a>
10064
+ <li><p> <a for=list>For each</a> <var> token</var> of <var> tokens</var> , <a for=set>append</a>
10064
10065
<var> token</var> to <a>this</a> 's <a>token set</a> .
10065
10066
10066
10067
<li><p> Run the <a>update steps</a> .
@@ -10072,7 +10073,7 @@ method steps are:
10072
10073
10073
10074
<ol>
10074
10075
<li>
10075
- <p> <a for=list>For each</a> <var> token</var> in <var> tokens</var> :
10076
+ <p> <a for=list>For each</a> <var> token</var> of <var> tokens</var> :
10076
10077
10077
10078
<ol>
10078
10079
<li><p> If <var> token</var> is the empty string, then <a>throw</a> a "{{SyntaxError!!exception}} "
@@ -10549,6 +10550,7 @@ Sergey G. Grekhov,
10549
10550
Shiki Okasaka,
10550
10551
Shinya Kawanaka,
10551
10552
Simon Pieters,
10553
+ Simon Wülker,
10552
10554
Stef Busking,
10553
10555
Steve Byrne,
10554
10556
Stig Halvorsen,
0 commit comments