@@ -1374,9 +1374,9 @@ property of the event being dispatched.
13741374<h3 id=dispatching-events>Dispatching events</h3>
13751375
13761376<div algorithm>
1377- <p> To <dfn export id=concept-event-dispatch>dispatch</dfn> an <var> event</var> to a
1378- <var> target</var> , with an optional <var> legacy target override flag</var> and an optional
1379- <var> legacyOutputDidListenersThrowFlag</var> , run these steps :
1377+ <p> To <dfn export id=concept-event-dispatch>dispatch</dfn> an <a>event</a> < var> event</var> to an
1378+ {{EventTarget}} object <var> target</var> , with an optional <var> legacy target override flag</var> and
1379+ an optional <var> legacyOutputDidListenersThrowFlag</var> :
13801380
13811381<ol>
13821382 <li><p> Set <var> event</var> 's <a>dispatch flag</a> .
@@ -1420,7 +1420,7 @@ property of the event being dispatched.
14201420 <li><p> Let <var> slottable</var> be <var> target</var> , if <var> target</var> is a <a>slottable</a>
14211421 and is <a for=slottable>assigned</a> , and null otherwise.
14221422
1423- <li><p> Let <var> slot-in-closed-tree </var> be false.
1423+ <li><p> Let <var> slotInClosedTree </var> be false.
14241424
14251425 <li><p> Let <var> parent</var> be the result of invoking <var> target</var> 's <a>get the parent</a>
14261426 with <var> event</var> .
@@ -1438,7 +1438,7 @@ property of the event being dispatched.
14381438 <li><p> Set <var> slottable</var> to null.
14391439
14401440 <li><p> If <var> parent</var> 's <a for=tree>root</a> is a <a for=/>shadow root</a> whose
1441- <a for=ShadowRoot>mode</a> is "<code> closed</code> ", then set <var> slot-in-closed-tree </var>
1441+ <a for=ShadowRoot>mode</a> is "<code> closed</code> ", then set <var> slotInClosedTree </var>
14421442 to true.
14431443 </ol>
14441444
@@ -1466,7 +1466,7 @@ property of the event being dispatched.
14661466 <var> parent</var> .
14671467
14681468 <li><p> <a>Append to an event path</a> with <var> event</var> , <var> parent</var> , null,
1469- <var> relatedTarget</var> , <var> touchTargets</var> , and <var> slot-in-closed-tree </var> .
1469+ <var> relatedTarget</var> , <var> touchTargets</var> , and <var> slotInClosedTree </var> .
14701470 </ol>
14711471
14721472 <li><p> Otherwise, if <var> parent</var> is <var> relatedTarget</var> , then set <var> parent</var>
@@ -1484,13 +1484,13 @@ property of the event being dispatched.
14841484
14851485 <li><p> <a>Append to an event path</a> with <var> event</var> , <var> parent</var> ,
14861486 <var> target</var> , <var> relatedTarget</var> , <var> touchTargets</var> , and
1487- <var> slot-in-closed-tree </var> .
1487+ <var> slotInClosedTree </var> .
14881488 </ol>
14891489
14901490 <li><p> If <var> parent</var> is non-null, then set <var> parent</var> to the result of invoking
14911491 <var> parent</var> 's <a>get the parent</a> with <var> event</var> .
14921492
1493- <li><p> Set <var> slot-in-closed-tree </var> to false.
1493+ <li><p> Set <var> slotInClosedTree </var> to false.
14941494 </ol>
14951495
14961496 <li><p> Let <var> clearTargetsItem</var> be the last <a>event path item</a> in <var> event</var> 's
@@ -1580,20 +1580,21 @@ property of the event being dispatched.
15801580
15811581<div algorithm>
15821582<p> To <dfn noexport id=concept-event-path-append>append to an event path</dfn> , given an
1583- <var> event</var> , <var> invocationTarget</var> , <var> shadowAdjustedTarget</var> ,
1584- <var> relatedTarget</var> , <var> touchTargets</var> , and a <var> slot-in-closed-tree</var> , run these
1585- steps:
1583+ <a>event</a> <var> event</var> , an {{EventTarget}} object <var> invocationTarget</var> , a
1584+ <a>potential event target</a> <var> shadowAdjustedTarget</var> , a <a>potential event target</a>
1585+ <var> relatedTarget</var> , a <a for=/>list</a> of <a>potential event targets</a>
1586+ <var> touchTargets</var> , and a boolean <var> slotInClosedTree</var> :
15861587
15871588<ol>
15881589 <li><p> Let <var> invocationTargetInShadowTree</var> be false.
15891590
15901591 <li><p> If <var> invocationTarget</var> is a <a for=/>node</a> and its <a for=tree>root</a> is a
15911592 <a for=/>shadow root</a> , then set <var> invocationTargetInShadowTree</var> to true.
15921593
1593- <li><p> Let <var> root-of-closed-tree </var> be false.
1594+ <li><p> Let <var> rootOfClosedTree </var> be false.
15941595
15951596 <li><p> If <var> invocationTarget</var> is a <a for=/>shadow root</a> whose <a for=ShadowRoot>mode</a>
1596- is "<code> closed</code> ", then set <var> root-of-closed-tree </var> to true.
1597+ is "<code> closed</code> ", then set <var> rootOfClosedTree </var> to true.
15971598
15981599 <li><p> <a for=list>Append</a> a new <a>event path item</a> to <var> event</var> 's
15991600 <a for=Event>path</a> whose
@@ -1602,8 +1603,8 @@ steps:
16021603 <a for="event path item">shadow-adjusted target</a> is <var> shadowAdjustedTarget</var> ,
16031604 <a for="event path item">relatedTarget</a> is <var> relatedTarget</var> ,
16041605 <a for="event path item">touch target list</a> is <var> touchTargets</var> ,
1605- <a for="event path item">root-of-closed-tree</a> is <var> root-of-closed-tree </var> , and
1606- <a for="event path item">slot-in-closed-tree</a> is <var> slot-in-closed-tree </var> .
1606+ <a for="event path item">root-of-closed-tree</a> is <var> rootOfClosedTree </var> , and
1607+ <a for="event path item">slot-in-closed-tree</a> is <var> slotInClosedTree </var> .
16071608</ol>
16081609</div>
16091610
@@ -1679,8 +1680,9 @@ steps:
16791680
16801681<div algorithm>
16811682<p> To <dfn noexport id=concept-event-listener-inner-invoke>inner invoke</dfn> , given an
1682- <var> event</var> , <var> listeners</var> , <var> phase</var> , <var> invocationTargetInShadowTree</var> ,
1683- and an optional <var> legacyOutputDidListenersThrowFlag</var> , run these steps:
1683+ <a>event</a> <var> event</var> , a <a for=/>list</a> of <a>event listeners</a> <var> listeners</var> , a
1684+ string <var> phase</var> , a boolean <var> invocationTargetInShadowTree</var> , and an optional
1685+ <var> legacyOutputDidListenersThrowFlag</var> :
16841686
16851687<ol>
16861688 <li><p> Let <var> found</var> be false.
0 commit comments