@@ -463,7 +463,7 @@ dictionary EventInit {
463463</pre>
464464
465465<p> An {{Event}} object is simply named an <dfn export id=concept-event>event</dfn> . It allows for
466- signaling that something has occurred, e.g., that an image has completed downloading.</p>
466+ signaling that something has occurred, e.g., that an image has completed downloading.
467467
468468<p> A <dfn export>potential event target</dfn> is null or an {{EventTarget}} object.
469469
@@ -492,7 +492,7 @@ empty list.
492492<a>potential event target</a> ), a <dfn for=Event/path>touch target list</dfn> (a <a for=/>list</a>
493493of <a>potential event targets</a> ), a <dfn for=Event/path>root-of-closed-tree</dfn> (a boolean), and
494494a <dfn for=Event/path>slot-in-closed-tree</dfn> (a boolean). A <a for=Event>path</a> is initially
495- the empty list.</p>
495+ the empty list.
496496
497497<dl class=domintro>
498498 <dt><code><var> event</var> = new <a constructor lt="Event()">Event</a> (<var> type</var> [, <var>eventInitDict</var>] )</code>
@@ -726,7 +726,7 @@ initialized to, which must be one of the following:
726726</ul>
727727
728728<p> The <dfn method for=Event><code>stopPropagation()</code></dfn> method steps are to set
729- <a>this</a> 's <a>stop propagation flag</a> .</p>
729+ <a>this</a> 's <a>stop propagation flag</a> .
730730
731731<p> The <dfn attribute for=Event><code>cancelBubble</code></dfn> getter steps are to return true if
732732<a>this</a> 's <a>stop propagation flag</a> is set; otherwise false.
@@ -920,7 +920,7 @@ must be run, given the arguments <var>type</var> and <var>eventInitDict</var>:
920920<p> To
921921<dfn export id=concept-event-create lt="creating an event|create an event">create an event</dfn>
922922using <var> eventInterface</var> , which must be either {{Event}} or an interface that inherits from
923- it, and optionally given a <a>realm</a> <var> realm</var> , run these steps:</p>
923+ it, and optionally given a <a>realm</a> <var> realm</var> , run these steps:
924924
925925<ol>
926926 <li><p> If <var> realm</var> is not given, then set it to null.
@@ -951,11 +951,11 @@ it, and optionally given a <a>realm</a> <var>realm</var>, run these steps:</p>
951951<p class=note> <a>Create an event</a> is meant to be used by other specifications which need to
952952separately <a lt="create an event">create</a> and <a>dispatch</a> events, instead of simply
953953<a lt="fire an event">firing</a> them. It ensures the event's attributes are initialized to the
954- correct defaults.</p>
954+ correct defaults.
955955
956956<div algorithm>
957957<p> The <dfn noexport>inner event creation steps</dfn> , given an <var> eventInterface</var> ,
958- <var> realm</var> , <var> time</var> , and <var> dictionary</var> , are as follows:</p>
958+ <var> realm</var> , <var> time</var> , and <var> dictionary</var> , are as follows:
959959
960960<ol>
961961 <li>
@@ -1056,7 +1056,7 @@ specified otherwise it returns null.
10561056<p> Each {{EventTarget}} object can have an associated
10571057<dfn export for=EventTarget>activation behavior</dfn> algorithm. The
10581058<a for=EventTarget>activation behavior</a> algorithm is passed an <a>event</a> , as indicated in the
1059- <a>dispatch</a> algorithm.</p>
1059+ <a>dispatch</a> algorithm.
10601060
10611061<p class=note> This exists because user agents perform certain actions for certain
10621062{{EventTarget}} objects, e.g., the <{area}> element, in response to synthetic {{MouseEvent}}
@@ -1169,7 +1169,7 @@ or <a for=EventTarget>legacy-canceled-activation behavior</a>.
11691169
11701170<p class=note> In the future we could allow custom <a>get the parent</a> algorithms. Let us know
11711171if this would be useful for your programs. For now, all author-created {{EventTarget}} s do not
1172- participate in a tree structure.</p>
1172+ participate in a tree structure.
11731173
11741174<div algorithm>
11751175<p> The <dfn>default passive value</dfn> , given an event type |type| and an {{EventTarget}}
@@ -1411,7 +1411,7 @@ property of the event being dispatched.
14111411 with <var> event</var> .
14121412
14131413 <li>
1414- <p> While <var> parent</var> is non-null:</p>
1414+ <p> While <var> parent</var> is non-null:
14151415
14161416 <ol>
14171417 <li>
@@ -1567,7 +1567,7 @@ property of the event being dispatched.
15671567<p> To <dfn noexport id=concept-event-path-append>append to an event path</dfn> , given an
15681568<var> event</var> , <var> invocationTarget</var> , <var> shadowAdjustedTarget</var> ,
15691569<var> relatedTarget</var> , <var> touchTargets</var> , and a <var> slot-in-closed-tree</var> , run these
1570- steps:</p>
1570+ steps:
15711571
15721572<ol>
15731573 <li><p> Let <var> invocationTargetInShadowTree</var> be false.
@@ -2012,7 +2012,7 @@ steps are:
20122012
20132013 <li>
20142014 <p> <a>Run steps after a timeout</a> given <var> global</var> , "<code> AbortSignal-timeout</code> ",
2015- <var> milliseconds</var> , and the following step:</p>
2015+ <var> milliseconds</var> , and the following step:
20162016
20172017 <ol>
20182018 <li><p> <a>Queue a global task</a> on the <a>timer task source</a> given <var> global</var> to
@@ -2439,23 +2439,23 @@ the standard using it has not been updated to account for <a>shadow trees</a>.</
24392439<p> A <a for=/>shadow root</a> is always attached to another <a>node tree</a> through its
24402440<a for=DocumentFragment>host</a> . A <a>shadow tree</a> is therefore never alone. The
24412441<a>node tree</a> of a <a for=/>shadow root</a> 's <a for=DocumentFragment>host</a> is sometimes
2442- referred to as the <dfn export id=concept-light-tree>light tree</dfn> .</p>
2442+ referred to as the <dfn export id=concept-light-tree>light tree</dfn> .
24432443
24442444<p class=note> A <a>shadow tree</a> 's corresponding <a>light tree</a> can be a <a>shadow tree</a>
2445- itself.</p>
2445+ itself.
24462446
24472447<p id=in-a-shadow-including-document> A <a for=/>node</a> is <dfn export>connected</dfn> if its
24482448<a>shadow-including root</a> is a <a for=/>document</a> .
24492449
24502450<h5 id=shadow-tree-slots>Slots</h5>
24512451
24522452<p> A <a>shadow tree</a> contains zero or more <a for=/>elements</a> that are
2453- <dfn export id=concept-slot lt=slot>slots</dfn> .</p>
2453+ <dfn export id=concept-slot lt=slot>slots</dfn> .
24542454
2455- <p class=note> A <a>slot</a> can only be created through HTML's <{slot}> element.</p>
2455+ <p class=note> A <a>slot</a> can only be created through HTML's <{slot}> element.
24562456
24572457<p> A <a>slot</a> has an associated <dfn export for=slot>name</dfn> (a string). Unless stated
2458- otherwise it is the empty string.</p>
2458+ otherwise it is the empty string.
24592459
24602460<p> Use these <a>attribute change steps</a> to update a <a>slot</a> 's <a for=slot>name</a> :
24612461
@@ -2481,20 +2481,20 @@ otherwise it is the empty string.</p>
24812481</ol>
24822482
24832483<p class=note> The first <a>slot</a> in a <a>shadow tree</a> , in <a>tree order</a> , whose
2484- <a for=slot>name</a> is the empty string, is sometimes known as the "default slot".</p>
2484+ <a for=slot>name</a> is the empty string, is sometimes known as the "default slot".
24852485
24862486<p> A <a>slot</a> has an associated <dfn export for=slot>assigned nodes</dfn> (a list of
2487- <a>slottables</a> ). Unless stated otherwise it is empty.</p>
2487+ <a>slottables</a> ). Unless stated otherwise it is empty.
24882488
24892489<h5 id=light-tree-slotables>Slottables</h5>
24902490
24912491<p> {{Element}} and {{Text}} <a for=/>nodes</a> are
2492- <dfn export id=concept-slotable lt=slottable>slottables</dfn> .</p>
2492+ <dfn export id=concept-slotable lt=slottable>slottables</dfn> .
24932493
24942494<p class=note> A <a>slot</a> can be a <a>slottable</a> .
24952495
24962496<p> A <a>slottable</a> has an associated <dfn export for=slottable id=slotable-name>name</dfn> (a
2497- string). Unless stated otherwise it is the empty string.</p>
2497+ string). Unless stated otherwise it is the empty string.
24982498
24992499<p> Use these <a>attribute change steps</a> to update a <a>slottable</a> 's <a for=slottable>name</a> :
25002500
@@ -2525,7 +2525,7 @@ string). Unless stated otherwise it is the empty string.</p>
25252525<dfn export for=slottable id=slotable-assigned-slot>assigned slot</dfn> (null or a <a>slot</a> ).
25262526Unless stated otherwise it is null. A <a>slottable</a> is
25272527<dfn export for=slottable id=slotable-assigned>assigned</dfn> if its <a>assigned slot</a> is
2528- non-null.</p>
2528+ non-null.
25292529
25302530<p> A <a>slottable</a> has an associated <dfn export for=slottable>manual slot assignment</dfn> (null
25312531or a <a>slot</a> ). Unless stated otherwise, it is null.
@@ -2955,14 +2955,14 @@ optional boolean <dfn for="insert"><var>suppressObservers</var></dfn> (default f
29552955 <li><p> Run the <a>children changed steps</a> for <var> parent</var> .
29562956
29572957 <li>
2958- <p> Let <var> staticNodeList</var> be a <a for=/>list</a> of <a for=/>nodes</a> , initially « ».</p>
2958+ <p> Let <var> staticNodeList</var> be a <a for=/>list</a> of <a for=/>nodes</a> , initially « ».
29592959
29602960 <p class="note"> We collect all <a for=/>nodes</a> <em> before</em> calling the
29612961 <a>post-connection steps</a> on any one of them, instead of calling the
29622962 <a>post-connection steps</a> <em> while</em> we're traversing the <a>node tree</a> . This is because
29632963 the <a>post-connection steps</a> can modify the tree's structure, making live traversal unsafe,
29642964 possibly leading to the <a>post-connection steps</a> being called multiple times on the same
2965- <a>node</a> .</p>
2965+ <a>node</a> .
29662966 </li>
29672967
29682968 <li>
@@ -3009,10 +3009,10 @@ to do these things asynchronously, however.
30093009 <li>
30103010 <p> If <var> newParent</var> 's <a for=/>shadow-including root</a> is not the same as
30113011 <var> node</var> 's <a for=/>shadow-including root</a> , then <a>throw</a> a
3012- "{{HierarchyRequestError!!exception}} " {{DOMException}} .</p>
3012+ "{{HierarchyRequestError!!exception}} " {{DOMException}} .
30133013
30143014 <p class=note> This has the side effect of ensuring that a move is only performed if
3015- <var> newParent</var> 's <a>connected</a> is <var>node</var>' s <a>connected</a> .</p>
3015+ <var> newParent</var> 's <a>connected</a> is <var>node</var>' s <a>connected</a> .
30163016 </li>
30173017
30183018 <li><p> If <var> node</var> is a <a>host-including inclusive ancestor</a> of <var> newParent</var> ,
@@ -3022,7 +3022,7 @@ to do these things asynchronously, however.
30223022 then <a>throw</a> a "{{NotFoundError!!exception}} " {{DOMException}} .
30233023
30243024 <li><p> If <var> node</var> is not an {{Element}} or a {{CharacterData}} <a for=/>node</a> , then
3025- <a>throw</a> a "{{HierarchyRequestError!!exception}} " {{DOMException}} .</p></li>
3025+ <a>throw</a> a "{{HierarchyRequestError!!exception}} " {{DOMException}} .
30263026
30273027 <li><p> If <var> node</var> is a {{Text}} <a for=/>node</a> and <var> newParent</var> is a
30283028 <a for=/>document</a> , then <a>throw</a> a "{{HierarchyRequestError!!exception}} " {{DOMException}} .
@@ -3124,10 +3124,10 @@ to do these things asynchronously, however.
31243124 </li>
31253125
31263126 <li><p> <a>Queue a tree mutation record</a> for <var> oldParent</var> with « », « <var> node</var> »,
3127- <var> oldPreviousSibling</var> , and <var> oldNextSibling</var> .</p></li>
3127+ <var> oldPreviousSibling</var> , and <var> oldNextSibling</var> .
31283128
31293129 <li><p> <a>Queue a tree mutation record</a> for <var> newParent</var> with « <var> node</var> », « »,
3130- <var> newPreviousSibling</var> , and <var> child</var> .</p></li>
3130+ <var> newPreviousSibling</var> , and <var> child</var> .
31313131</ol>
31323132</div>
31333133
@@ -4676,7 +4676,7 @@ statement, switching on the interface <a>this</a> <a>implements</a>:
46764676</dl>
46774677
46784678<p> The <dfn attribute for=Node><code>isConnected</code></dfn> getter steps are to return true,
4679- if <a>this</a> is <a>connected</a> ; otherwise false.</p>
4679+ if <a>this</a> is <a>connected</a> ; otherwise false.
46804680
46814681<p> The <dfn attribute for=Node><code>ownerDocument</code></dfn> getter steps are to return null,
46824682if <a>this</a> is a <a for=/>document</a> ; otherwise <a>this</a> 's <a for=Node>node document</a> .
@@ -6168,7 +6168,7 @@ algorithm is passed <var ignore>node</var> and <var ignore>oldDocument</var>, as
61686168
61696169<p> Null or a {{CustomElementRegistry}} object <var> registry</var>
61706170<dfn>is a global custom element registry</dfn> if <var> registry</var> is non-null and
6171- <var> registry</var> 's <a for=CustomElementRegistry>is scoped</a> is false.</p>
6171+ <var> registry</var> 's <a for=CustomElementRegistry>is scoped</a> is false.
61726172
61736173<p> A <a for=/>document</a> <var> document</var> 's <dfn>effective global custom element registry</dfn>
61746174is:
@@ -6456,7 +6456,7 @@ method steps are:
64566456 </ol>
64576457
64586458 <li><p> <a>Append</a> the result of <a>creating an element</a> given <var> doc</var> ,
6459- "<code> body</code> ", and the <a>HTML namespace</a> , to the <{html}> element created earlier.</li>
6459+ "<code> body</code> ", and the <a>HTML namespace</a> , to the <{html}> element created earlier.
64606460
64616461 <li><p><var> doc</var> 's <a for=Document>origin</a> is <a>this</a>' s associated
64626462 <a for=/>document</a> 's <a for=Document>origin</a> .
@@ -6564,34 +6564,34 @@ enum SlotAssignmentMode { "manual", "named" };
65646564<p> {{ShadowRoot}} <a for=/>nodes</a> are simply known as
65656565<dfn export id=concept-shadow-root lt="shadow root">shadow roots</dfn> .
65666566
6567- <p> <a for=/>Shadow roots</a> 's associated <a for=DocumentFragment>host</a> is never null.</p>
6567+ <p> <a for=/>Shadow roots</a> 's associated <a for=DocumentFragment>host</a> is never null.
65686568<!-- If we ever change this, e.g., add a ShadowRoot object constructor, that would have serious
65696569 consequences for innerHTML. -->
65706570
65716571<p> <a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>mode</dfn> ("<code> open</code> "
6572- or "<code> closed</code> ").</p>
6572+ or "<code> closed</code> ").
65736573
65746574<p> <a for=/>Shadow roots</a> have an associated <dfn export for=ShadowRoot>delegates focus</dfn>
6575- (a boolean). It is initially set to false.</p>
6575+ (a boolean). It is initially set to false.
65766576
65776577<p> <a for=/>Shadow roots</a> have an associated
65786578<dfn export for=ShadowRoot>available to element internals</dfn> (a boolean). It is initially set to
6579- false.</p>
6579+ false.
65806580
65816581<p> <a for=/>Shadow roots</a> have an associated <dfn export for=ShadowRoot>declarative</dfn>
6582- (a boolean). It is initially set to false.</p>
6582+ (a boolean). It is initially set to false.
65836583
65846584<p> <a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>slot assignment</dfn>
65856585("<code> manual</code> " or "<code> named</code> ").
65866586
65876587<p> <a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>clonable</dfn> (a boolean).
6588- It is initially set to false.</p>
6588+ It is initially set to false.
65896589
65906590<p> <a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>serializable</dfn> (a boolean).
6591- It is initially set to false.</p>
6591+ It is initially set to false.
65926592
65936593<p> <a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>custom element registry</dfn>
6594- (null or a {{CustomElementRegistry}} object). It is initially null.</p>
6594+ (null or a {{CustomElementRegistry}} object). It is initially null.
65956595
65966596<p> <a for=/>Shadow roots</a> have an associated
65976597<dfn for=ShadowRoot>keep custom element registry null</dfn> (a boolean). It is initially false.
@@ -6611,10 +6611,10 @@ null if <var>event</var>'s <a>composed flag</a> is unset and <a for=/>shadow roo
66116611<hr>
66126612
66136613<p> The <dfn attribute for=ShadowRoot><code>mode</code></dfn> getter steps are to return
6614- <a>this</a> 's <a for=ShadowRoot>mode</a> .</p>
6614+ <a>this</a> 's <a for=ShadowRoot>mode</a> .
66156615
66166616<p> The <dfn attribute for=ShadowRoot><code>delegatesFocus</code></dfn> getter steps are to return
6617- <a>this</a> 's <a for=ShadowRoot>delegates focus</a> .</p>
6617+ <a>this</a> 's <a for=ShadowRoot>delegates focus</a> .
66186618
66196619<p> The <dfn attribute for=ShadowRoot><code>slotAssignment</code></dfn> getter steps are to return
66206620<a>this</a> 's <a for=ShadowRoot>slot assignment</a> .
@@ -6683,7 +6683,7 @@ is an object or one of its <a>shadow-including ancestors</a>.
66836683</ul>
66846684
66856685<p> To <dfn export lt="retarget|retargeting">retarget</dfn> an object <var> A</var> against an object
6686- <var> B</var> , repeat these steps until they return an object:</p>
6686+ <var> B</var> , repeat these steps until they return an object:
66876687
66886688<ol>
66896689 <li>
@@ -6813,10 +6813,10 @@ behavior of the '':defined'' pseudo-class. Whether or not an element is <a for=E
68136813used to determine the behavior of the <a href=#mutation-algorithms>mutation algorithms</a> . The
68146814"<code> failed</code> " and "<code> precustomized</code> " states are used to ensure that if a
68156815<a>custom element constructor</a> fails to execute correctly the first time, it is not executed
6816- again by an <a lt="upgrade an element">upgrade</a> .</p>
6816+ again by an <a lt="upgrade an element">upgrade</a> .
68176817
68186818<div class=example id=example-c5b21302>
6819- <p> The following code illustrates elements in each of these four states:</p>
6819+ <p> The following code illustrates elements in each of these four states:
68206820
68216821 <pre><code class=lang-html>
68226822 <!DOCTYPE html>
@@ -7094,7 +7094,7 @@ null or a {{CustomElementRegistry}} object <var>registry</var>:
70947094<a>attribute</a> <var> attribute</var> to <var> value</var> , run these steps:
70957095
70967096<ol>
7097- <li><p> Let <var> oldValue</var> be <var> attribute</var> 's <a for=Attr>value</a> .</p></li>
7097+ <li><p> Let <var> oldValue</var> be <var> attribute</var> 's <a for=Attr>value</a> .
70987098
70997099 <li><p> Set <var> attribute</var> 's <a for=Attr>value</a> to <var> value</var> .
71007100
@@ -7123,7 +7123,7 @@ steps:
71237123<a>attribute</a> <var> attribute</var> , run these steps:
71247124
71257125<ol>
7126- <li><p> Let <var> element</var> be <var> attribute</var> 's <a for=Attr>element</a> .</p></li>
7126+ <li><p> Let <var> element</var> be <var> attribute</var> 's <a for=Attr>element</a> .
71277127
71287128 <li> <a for=list>Remove</a> <var> attribute</var> from <var> element</var> 's <a for=Element>attribute
71297129 list</a> .
@@ -7138,7 +7138,7 @@ steps:
71387138<a>attribute</a> <var> oldAttribute</var> with an <a>attribute</a> <var> newAttribute</var> :
71397139
71407140<ol>
7141- <li><p> Let <var> element</var> be <var> oldAttribute</var> 's <a for=Attr>element</a> .</p></li>
7141+ <li><p> Let <var> element</var> be <var> oldAttribute</var> 's <a for=Attr>element</a> .
71427142
71437143 <li><p> <a for=list>Replace</a> <var> oldAttribute</var> by <var> newAttribute</var> in
71447144 <var> element</var> 's <a for=Element>attribute list</a> .
@@ -7189,16 +7189,16 @@ given null or a string <var>namespace</var>, a string <var>localName</var>, and
71897189<div algorithm>
71907190<p> To <dfn export id=concept-element-attributes-get-value>get an attribute value</dfn> given an
71917191<a for=/>element</a> <var> element</var> , a string <var> localName</var> , and an optional null or
7192- string <var> namespace</var> (default null):</p>
7192+ string <var> namespace</var> (default null):
71937193
71947194<ol>
71957195 <li><p> Let <var> attr</var> be the result of
71967196 <a lt="get an attribute by namespace and local name">getting an attribute</a> given
7197- <var> namespace</var> , <var> localName</var> , and <var> element</var> .</p></li>
7197+ <var> namespace</var> , <var> localName</var> , and <var> element</var> .
71987198
7199- <li><p> If <var> attr</var> is null, then return the empty string.</p></li>
7199+ <li><p> If <var> attr</var> is null, then return the empty string.
72007200
7201- <li><p> Return <var> attr</var> 's <a for=Attr>value</a> .</p></li>
7201+ <li><p> Return <var> attr</var> 's <a for=Attr>value</a> .
72027202</ol>
72037203</div>
72047204
@@ -7371,16 +7371,15 @@ claims as to whether using them is conforming or not.
73717371</dl>
73727372
73737373<p> IDL attributes that are defined to <dfn for=Attr id=concept-reflect>reflect</dfn> a string
7374- <var> name</var> , must have these getter and setter steps:</p>
7374+ <var> name</var> , must have these getter and setter steps:
73757375
73767376<dl>
73777377 <dt> getter steps
73787378 <dd><p> Return the result of running <a>get an attribute value</a> given <a>this</a> and
7379- <var> name</var> .</p></dd>
7379+ <var> name</var> .
73807380
73817381 <dt> setter steps
73827382 <dd><p> <a>Set an attribute value</a> for <a>this</a> using <var> name</var> and the given value.
7383- </p></dd>
73847383</dl>
73857384
73867385<p> The <dfn attribute for=Element><code>id</code></dfn> attribute must <a for=Attr>reflect</a>
@@ -7400,7 +7399,7 @@ particular {{DOMTokenList}} object are also known as the <a for=/>element</a>'s
74007399
74017400<p class=note><code> id</code> , <code> class</code> , and <code> slot</code> are effectively
74027401superglobal attributes as they can appear on any element, regardless of that element's
7403- namespace.</p>
7402+ namespace.
74047403
74057404<hr>
74067405
@@ -10851,7 +10850,7 @@ method steps are:
1085110850 <a>throw</a> an "{{InvalidCharacterError!!exception}} " {{DOMException}} .
1085210851
1085310852 <li><p> If <a>this</a> 's <a>token set</a> does not <a for=set>contain</a> <var> token</var> , then
10854- return false.</p>
10853+ return false.
1085510854
1085610855 <li><p> <a for=set>Replace</a> <var> token</var> in <a>this</a> 's <a>token set</a> with
1085710856 <var> newToken</var> .
0 commit comments