@@ -1385,22 +1385,28 @@ for discussion).
1385
1385
<var> clearTargetsStruct</var> 's <a for=Event/path>touch target list</a> is a <a for=/>node</a>
1386
1386
and its <a for=tree>root</a> is a <a for=/>shadow root</a> , and false otherwise.
1387
1387
1388
- <li><p> Set <var> event</var> 's {{Event/eventPhase}} attribute to {{Event/CAPTURING_PHASE}} .
1389
-
1390
1388
<li><p> If <var> activationTarget</var> is non-null and <var> activationTarget</var> has
1391
1389
<a for=EventTarget>legacy-pre-activation behavior</a> , then run <var> activationTarget</var> 's
1392
1390
<a for=EventTarget>legacy-pre-activation behavior</a> .
1393
1391
1394
1392
<li>
1395
- <p> For each <var> struct</var> in <var> event</var> 's <a for=Event>path</a> , in reverse order:
1393
+ <p> <a for=list>For each</a> <var> struct</var> in <var> event</var> 's <a for=Event>path</a> , in
1394
+ reverse order:
1396
1395
1397
1396
<ol>
1398
- <li><p> If <var> struct</var> 's <a for=Event/path>target</a> is null, then <a>invoke</a> with
1399
- <var> struct</var> , <var> event</var> , and <var> legacyOutputDidListenersThrowFlag</var> if given.
1397
+ <li><p> If <var> struct</var> 's <a for=Event/path>target</a> is non-null, then set
1398
+ <var> event</var> 's {{Event/eventPhase}} attribute to {{Event/AT_TARGET}} .
1399
+
1400
+ <li><p> Otherwise, set <var> event</var> 's {{Event/eventPhase}} attribute to
1401
+ {{Event/CAPTURING_PHASE}} .
1402
+
1403
+ <li><p> <a>Invoke</a> with <var> struct</var> , <var> event</var> , "<code> capturing</code> ", and
1404
+ <var> legacyOutputDidListenersThrowFlag</var> if given.
1400
1405
</ol>
1401
1406
1402
1407
<li>
1403
- <p> For each <var> struct</var> in <var> event</var> 's <a for=Event>path</a> , in order:
1408
+ <p> If <var> event</var> 's {{Event/bubbles}} attribute is true, then <a for=list>for each</a>
1409
+ <var> struct</var> in <var> event</var> 's <a for=Event>path</a> :
1404
1410
1405
1411
<ol>
1406
1412
<li><p> If <var> struct</var> 's <a for=Event/path>target</a> is non-null, then set
@@ -1409,10 +1415,8 @@ for discussion).
1409
1415
<li><p> Otherwise, set <var> event</var> 's {{Event/eventPhase}} attribute to
1410
1416
{{Event/BUBBLING_PHASE}} .
1411
1417
1412
- <li><p> If either <var> event</var> 's {{Event/eventPhase}} attribute is {{Event/BUBBLING_PHASE}}
1413
- and <var> event</var> 's {{Event/bubbles}} attribute is true or <var>event</var>' s
1414
- {{Event/eventPhase}} attribute is {{Event/AT_TARGET}} , then <a>invoke</a> with
1415
- <var> struct</var> , <var> event</var> , and <var> legacyOutputDidListenersThrowFlag</var> if given.
1418
+ <li><p> <a>Invoke</a> with <var> struct</var> , <var> event</var> , "<code> bubbling</code> ", and
1419
+ <var> legacyOutputDidListenersThrowFlag</var> if given.
1416
1420
</ol>
1417
1421
</ol>
1418
1422
@@ -1476,7 +1480,8 @@ for discussion).
1476
1480
</ol>
1477
1481
1478
1482
<p> To <dfn noexport id=concept-event-listener-invoke>invoke</dfn> , given a <var> struct</var> ,
1479
- <var> event</var> , and an optional <var> legacyOutputDidListenersThrowFlag</var> , run these steps:
1483
+ <var> event</var> , <var> phase</var> , and an optional <var> legacyOutputDidListenersThrowFlag</var> ,
1484
+ run these steps:
1480
1485
1481
1486
<ol>
1482
1487
<li><p> Set <var> event</var> 's <a for=Event>target</a> to the <a for=Event/path>target</a> of the
@@ -1502,7 +1507,7 @@ for discussion).
1502
1507
run. Note that removal still has an effect due to the <a for="event listener">removed</a> field.
1503
1508
1504
1509
<li><p> Let <var> found</var> be the result of running <a>inner invoke</a> with <var> event</var> ,
1505
- <var> listeners</var> , and <var> legacyOutputDidListenersThrowFlag</var> if given.
1510
+ <var> listeners</var> , <var> phase </var> , and <var> legacyOutputDidListenersThrowFlag</var> if given.
1506
1511
1507
1512
<li>
1508
1513
<p> If <var> found</var> is false and <var> event</var> 's {{Event/isTrusted}} attribute is true,
@@ -1526,15 +1531,15 @@ for discussion).
1526
1531
<tr><td> "<code> transitionend</code> "<td> "<code> webkitTransitionEnd</code> "
1527
1532
</table>
1528
1533
1529
- <li><p> <a>Inner invoke</a> with <var> event</var> , <var> listeners</var> , and
1534
+ <li><p> <a>Inner invoke</a> with <var> event</var> , <var> listeners</var> , <var> phase </var> , and
1530
1535
<var> legacyOutputDidListenersThrowFlag</var> if given.
1531
1536
1532
1537
<li><p> Set <var> event</var> 's {{Event/type}} attribute value to <var> originalEventType</var> .
1533
1538
</ol>
1534
1539
</ol>
1535
1540
1536
1541
<p> To <dfn noexport id=concept-event-listener-inner-invoke>inner invoke</dfn> , given an
1537
- <var> event</var> , <var> listeners</var> , and an optional
1542
+ <var> event</var> , <var> listeners</var> , <var> phase </var> , and an optional
1538
1543
<var> legacyOutputDidListenersThrowFlag</var> , run these steps:
1539
1544
1540
1545
<ol>
@@ -1550,13 +1555,11 @@ for discussion).
1550
1555
1551
1556
<li><p> Set <var> found</var> to true.
1552
1557
1553
- <li><p> If <var> event</var> 's {{Event/eventPhase}} attribute value is {{Event/CAPTURING_PHASE}}
1554
- and <var> listener</var> 's <a for="event listener">capture</a> is false, then
1555
- <a for=iteration>continue</a> .
1558
+ <li><p> If <var> phase</var> is "<code> capturing</code> " and <var> listener</var> 's
1559
+ <a for="event listener">capture</a> is false, then <a for=iteration>continue</a> .
1556
1560
1557
- <li><p> If <var> event</var> 's {{Event/eventPhase}} attribute value is {{Event/BUBBLING_PHASE}} and
1558
- <var> listener</var> 's <a for="event listener">capture</a> is true, then
1559
- <a for=iteration>continue</a> .
1561
+ <li><p> If <var> phase</var> is "<code> bubbling</code> " and <var> listener</var> 's
1562
+ <a for="event listener">capture</a> is true, then <a for=iteration>continue</a> .
1560
1563
1561
1564
<li><p> If <var> listener</var> 's <a for="event listener">once</a> is true, then
1562
1565
<a for=list>remove</a> <var> listener</var> from <var> event</var> 's {{Event/currentTarget}}
@@ -10051,6 +10054,7 @@ Mark Miller,
10051
10054
Martijn van der Ven,
10052
10055
Mats Palmgren,
10053
10056
Mounir Lamouri,
10057
+ Michael Stramel,
10054
10058
Michael™ Smith,
10055
10059
Mike Champion,
10056
10060
Mike Taylor,
0 commit comments