Skip to content

Commit f296e1c

Browse files
committed
Editorial: event's patch consists of structs
As pointed out in #685 this was a bit confusing.
1 parent 7fa8367 commit f296e1c

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

dom.bs

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,14 +1376,14 @@ for discussion).
13761376
<li><p>Set <var>slot-in-closed-tree</var> to false.
13771377
</ol>
13781378

1379-
<li><p>Let <var>clearTargetsTuple</var> be the last tuple in <var>event</var>'s
1379+
<li><p>Let <var>clearTargetsStruct</var> be the last struct in <var>event</var>'s
13801380
<a for=Event>path</a> whose <a for=Event/path>target</a> is non-null.
13811381

1382-
<li><p>Let <var>clearTargets</var> be true if <var>clearTargetsTuple</var>'s
1383-
<a for=Event/path>target</a>, <var>clearTargetsTuple</var>'s <a for=Event/path>relatedTarget</a>,
1384-
or an {{EventTarget}} object in <var>clearTargetsTuple</var>'s
1385-
<a for=Event/path>touch target list</a> is a <a for=/>node</a> and its <a for=tree>root</a> is a
1386-
<a for=/>shadow root</a>, and false otherwise.
1382+
<li><p>Let <var>clearTargets</var> be true if <var>clearTargetsStruct</var>'s
1383+
<a for=Event/path>target</a>, <var>clearTargetsStruct</var>'s
1384+
<a for=Event/path>relatedTarget</a>, or an {{EventTarget}} object in
1385+
<var>clearTargetsStruct</var>'s <a for=Event/path>touch target list</a> is a <a for=/>node</a>
1386+
and its <a for=tree>root</a> is a <a for=/>shadow root</a>, and false otherwise.
13871387

13881388
<li><p>Set <var>event</var>'s {{Event/eventPhase}} attribute to {{Event/CAPTURING_PHASE}}.
13891389

@@ -1392,18 +1392,18 @@ for discussion).
13921392
<a for=EventTarget>legacy-pre-activation behavior</a>.
13931393

13941394
<li>
1395-
<p>For each <var>tuple</var> in <var>event</var>'s <a for=Event>path</a>, in reverse order:
1395+
<p>For each <var>struct</var> in <var>event</var>'s <a for=Event>path</a>, in reverse order:
13961396

13971397
<ol>
1398-
<li><p>If <var>tuple</var>'s <a for=Event/path>target</a> is null, then <a>invoke</a> with
1399-
<var>tuple</var>, <var>event</var>, and <var>legacyOutputDidListenersThrowFlag</var> if given.
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.
14001400
</ol>
14011401

14021402
<li>
1403-
<p>For each <var>tuple</var> in <var>event</var>'s <a for=Event>path</a>, in order:
1403+
<p>For each <var>struct</var> in <var>event</var>'s <a for=Event>path</a>, in order:
14041404

14051405
<ol>
1406-
<li><p>If <var>tuple</var>'s <a for=Event/path>target</a> is non-null, then set
1406+
<li><p>If <var>struct</var>'s <a for=Event/path>target</a> is non-null, then set
14071407
<var>event</var>'s {{Event/eventPhase}} attribute to {{Event/AT_TARGET}}.
14081408

14091409
<li><p>Otherwise, set <var>event</var>'s {{Event/eventPhase}} attribute to
@@ -1412,7 +1412,7 @@ for discussion).
14121412
<li><p>If either <var>event</var>'s {{Event/eventPhase}} attribute is {{Event/BUBBLING_PHASE}}
14131413
and <var>event</var>'s {{Event/bubbles}} attribute is true or <var>event</var>'s
14141414
{{Event/eventPhase}} attribute is {{Event/AT_TARGET}}, then <a>invoke</a> with
1415-
<var>tuple</var>, <var>event</var>, and <var>legacyOutputDidListenersThrowFlag</var> if given.
1415+
<var>struct</var>, <var>event</var>, and <var>legacyOutputDidListenersThrowFlag</var> if given.
14161416
</ol>
14171417
</ol>
14181418

@@ -1475,23 +1475,23 @@ for discussion).
14751475
<a for=Event/path>slot-in-closed-tree</a> is <var>slot-in-closed-tree</var>.
14761476
</ol>
14771477

1478-
<p>To <dfn noexport id=concept-event-listener-invoke>invoke</dfn>, given a <var>tuple</var>,
1478+
<p>To <dfn noexport id=concept-event-listener-invoke>invoke</dfn>, given a <var>struct</var>,
14791479
<var>event</var>, and an optional <var>legacyOutputDidListenersThrowFlag</var>, run these steps:
14801480

14811481
<ol>
14821482
<li><p>Set <var>event</var>'s <a for=Event>target</a> to the <a for=Event/path>target</a> of the
1483-
last tuple in <var>event</var>'s <a for=Event>path</a>, that is either <var>tuple</var> or
1484-
preceding <var>tuple</var>, whose <a for=Event/path>target</a> is non-null.
1483+
last struct in <var>event</var>'s <a for=Event>path</a>, that is either <var>struct</var> or
1484+
preceding <var>struct</var>, whose <a for=Event/path>target</a> is non-null.
14851485

1486-
<li><p>Set <var>event</var>'s <a for=Event>relatedTarget</a> to <var>tuple</var>'s
1486+
<li><p>Set <var>event</var>'s <a for=Event>relatedTarget</a> to <var>struct</var>'s
14871487
<a for=Event/path>relatedTarget</a>.
14881488

1489-
<li><p>Set <var>event</var>'s <a for=Event>touch target list</a> to <var>tuple</var>'s
1489+
<li><p>Set <var>event</var>'s <a for=Event>touch target list</a> to <var>struct</var>'s
14901490
<a for=Event/path>touch target list</a>.
14911491

14921492
<li><p>If <var>event</var>'s <a>stop propagation flag</a> is set, then return.
14931493

1494-
<li><p>Initialize <var>event</var>'s {{Event/currentTarget}} attribute to <var>tuple</var>'s
1494+
<li><p>Initialize <var>event</var>'s {{Event/currentTarget}} attribute to <var>struct</var>'s
14951495
<a for=Event/path>item</a>.
14961496

14971497
<li>
@@ -1575,7 +1575,7 @@ for discussion).
15751575
<ol>
15761576
<li><p>Set <var>currentEvent</var> to <var>global</var>'s <a for=Window>current event</a>.
15771577

1578-
<li><p>If <var>tuple</var>'s <a for=Event/path>item-in-shadow-tree</a> is false, then set
1578+
<li><p>If <var>struct</var>'s <a for=Event/path>item-in-shadow-tree</a> is false, then set
15791579
<var>global</var>'s <a for=Window>current event</a> to <var>event</var>.
15801580
</ol>
15811581

@@ -5751,8 +5751,9 @@ or "<code>closed</code>").</p>
57515751

57525752
<p>A <a for=/>shadow root</a>'s <a>get the parent</a> algorithm, given an <var>event</var>, returns
57535753
null if <var>event</var>'s <a>composed flag</a> is unset and <a for=/>shadow root</a> is the
5754-
<a for=tree>root</a> of <var>event</var>'s <a for=Event>path</a>'s first tuple's <b>item</b>, and
5755-
<a for=/>shadow root</a>'s <a for=DocumentFragment>host</a> otherwise.
5754+
<a for=tree>root</a> of <var>event</var>'s <a for=Event>path</a>'s first struct's
5755+
<a for=Event/path>item</a>, and <a for=/>shadow root</a>'s <a for=DocumentFragment>host</a>
5756+
otherwise.
57565757

57575758
<p>The <dfn attribute for=ShadowRoot><code>mode</code></dfn> attribute's getter must return the
57585759
<a>context object</a>'s <a for=ShadowRoot>mode</a>.</p>

0 commit comments

Comments
 (0)