Skip to content

Commit 42d2485

Browse files
authored
Editorial: a removed node's root is itself
Also address some issues Bikeshed found (incorrect linking and the use of "optional" in a non-normative context). Fixes #691.
1 parent 28cdb47 commit 42d2485

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

dom.bs

+19-18
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ the empty list.</p>
495495
<dt><code><var>event</var> = new <a constructor lt="Event()">Event</a>(<var>type</var> [, <var>eventInitDict</var>])</code>
496496
<dd>Returns a new <var>event</var> whose
497497
{{Event/type}} attribute value is set to
498-
<var>type</var>. The optional <var>eventInitDict</var> argument
498+
<var>type</var>. The <var>eventInitDict</var> argument
499499
allows for setting the {{Event/bubbles}} and
500500
{{Event/cancelable}} attributes via object
501501
members of the same name.
@@ -793,7 +793,7 @@ dictionary CustomEventInit : EventInit {
793793
<dl class=domintro>
794794
<dt><code><var>event</var> = new <a constructor lt="CustomEvent()">CustomEvent</a>(<var>type</var> [, <var>eventInitDict</var>])</code>
795795
<dd>Works analogously to the constructor for {{Event}} except
796-
that the optional <var>eventInitDict</var> argument now
796+
that the <var>eventInitDict</var> argument now
797797
allows for setting the {{CustomEvent/detail}} attribute
798798
too.
799799

@@ -2646,7 +2646,7 @@ with an optional <i>suppress observers flag</i>, run these steps:
26462646
<ol>
26472647
<li><p>Run <a>assign slotables for a tree</a> with <var>parent</var>'s <a for=tree>root</a>.
26482648

2649-
<li><p>Run <a>assign slotables for a tree</a> with <var>node</var>'s <a for=tree>root</a>.
2649+
<li><p>Run <a>assign slotables for a tree</a> with <var>node</var>.
26502650
</ol>
26512651

26522652
<li><p>Run the <a>removing steps</a> with <var>node</var> and <var>parent</var>.
@@ -9071,7 +9071,7 @@ must return the <a>context object</a>'s <a for=traversal>filter</a>.
90719071
<p>If <var>beforeNode</var> is false, then set it to true.
90729072
</dl>
90739073

9074-
<li><p>Let <var>result</var> be the result of <a for=Node>filtering</a> <var>node</var> within
9074+
<li><p>Let <var>result</var> be the result of <a for=/>filtering</a> <var>node</var> within
90759075
<var>iterator</var>.
90769076

90779077
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then <a for=iteration>break</a>.
@@ -9154,7 +9154,7 @@ these steps:
91549154
<ol>
91559155
<li><p>Set <var>node</var> to <var>node</var>'s <a for=tree>parent</a>.
91569156

9157-
<li><p>If <var>node</var> is non-null and <a for=Node>filtering</a> <var>node</var> within the
9157+
<li><p>If <var>node</var> is non-null and <a for=/>filtering</a> <var>node</var> within the
91589158
<a>context object</a> returns {{NodeFilter/FILTER_ACCEPT}}, then set the <a>context object</a>'s
91599159
<a for=TreeWalker>current</a> to <var>node</var> and return <var>node</var>.
91609160
</ol>
@@ -9175,7 +9175,7 @@ these steps:
91759175
<p>While <var>node</var> is non-null:
91769176

91779177
<ol>
9178-
<li><p>Let <var>result</var> be the result of <a for=Node>filtering</a> <var>node</var> within
9178+
<li><p>Let <var>result</var> be the result of <a for=/>filtering</a> <var>node</var> within
91799179
<var>walker</var>.
91809180

91819181
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then set <var>walker</var>'s
@@ -9243,7 +9243,7 @@ and <var>type</var>, run these steps:
92439243
<ol>
92449244
<li><p>Set <var>node</var> to <var>sibling</var>.
92459245

9246-
<li><p>Let <var>result</var> be the result of <a for=Node>filtering</a> <var>node</var> within
9246+
<li><p>Let <var>result</var> be the result of <a for=/>filtering</a> <var>node</var> within
92479247
<var>walker</var>.
92489248

92499249
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then set <var>walker</var>'s
@@ -9263,8 +9263,8 @@ and <var>type</var>, run these steps:
92639263
<li><p>If <var>node</var> is null or <var>walker</var>'s <a for=traversal>root</a>, then return
92649264
null.
92659265

9266-
<li><p>If the return value of <a for=Node>filtering</a> <var>node</var> within <var>walker</var>
9267-
is {{NodeFilter/FILTER_ACCEPT}}, then return null.
9266+
<li><p>If the return value of <a for=/>filtering</a> <var>node</var> within <var>walker</var> is
9267+
{{NodeFilter/FILTER_ACCEPT}}, then return null.
92689268
</ol>
92699269
</ol>
92709270

@@ -9292,8 +9292,8 @@ these steps:
92929292
<ol>
92939293
<li><p>Set <var>node</var> to <var>sibling</var>.
92949294

9295-
<li><p>Let <var>result</var> be the result of <a for=Node>filtering</a> <var>node</var> within
9296-
the <a>context object</a>.
9295+
<li><p>Let <var>result</var> be the result of <a for=/>filtering</a> <var>node</var> within the
9296+
<a>context object</a>.
92979297

92989298
<li>
92999299
<p>While <var>result</var> is not {{NodeFilter/FILTER_REJECT}} and <var>node</var> has a
@@ -9302,8 +9302,8 @@ these steps:
93029302
<ol>
93039303
<li><p>Set <var>node</var> to <var>node</var>'s <a for=tree>last child</a>.
93049304

9305-
<li><p>Set <var>result</var> to the result of <a for=Node>filtering</a> <var>node</var>
9306-
within the <a>context object</a>.
9305+
<li><p>Set <var>result</var> to the result of <a for=/>filtering</a> <var>node</var> within
9306+
the <a>context object</a>.
93079307
</ol>
93089308

93099309
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then set the
@@ -9318,7 +9318,7 @@ these steps:
93189318

93199319
<li><p>Set <var>node</var> to <var>node</var>'s <a for=tree>parent</a>.
93209320

9321-
<li><p>If the return value of <a for=Node>filtering</a> <var>node</var> within the
9321+
<li><p>If the return value of <a for=/>filtering</a> <var>node</var> within the
93229322
<a>context object</a> is {{NodeFilter/FILTER_ACCEPT}}, then set the <a>context object</a>'s
93239323
<a for=TreeWalker>current</a> to <var>node</var> and return <var>node</var>.
93249324
</ol>
@@ -9345,8 +9345,8 @@ steps:
93459345
<ol>
93469346
<li><p>Set <var>node</var> to its <a for=tree>first child</a>.
93479347

9348-
<li><p>Set <var>result</var> to the result of <a for=Node>filtering</a> <var>node</var> within
9349-
the <a>context object</a>.
9348+
<li><p>Set <var>result</var> to the result of <a for=/>filtering</a> <var>node</var> within the
9349+
<a>context object</a>.
93509350

93519351
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then set the
93529352
<a>context object</a>'s <a for=TreeWalker>current</a> to <var>node</var> and return
@@ -9371,8 +9371,8 @@ steps:
93719371
<li><p>Set <var>temporary</var> to <var>temporary</var>'s <a for=tree>parent</a>.
93729372
</ol>
93739373

9374-
<li><p>Set <var>result</var> to the result of <a for=Node>filtering</a> <var>node</var> within
9375-
the <a>context object</a>.
9374+
<li><p>Set <var>result</var> to the result of <a for=/>filtering</a> <var>node</var> within the
9375+
<a>context object</a>.
93769376

93779377
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then set the <a>context object</a>'s
93789378
<a for=TreeWalker>current</a> to <var>node</var> and return <var>node</var>.
@@ -9993,6 +9993,7 @@ Ondřej Žára,
99939993
Peter Sharpe,
99949994
Philip Jägenstedt,
99959995
Philippe Le Hégaret,
9996+
Pierre-Marie Dartus,
99969997
Ra'Shaun Stovall (Snuggs),
99979998
Rafael Weinstein,
99989999
Richard Bradshaw,

0 commit comments

Comments
 (0)