Skip to content

Commit e4814ac

Browse files
committed
[selectors] Make the algos use the new grammar terms. Some minor Bikeshed/spelling fixes too.
1 parent 77130cf commit e4814ac

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

selectors/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3243,7 +3243,7 @@ Evaluating a Selector</h3>
32433243
before something <em>is</em> exposed.
32443244

32453245

3246-
<h3 id='parse-selector'>
3246+
<h3 id='parse-selector' algorithm>
32473247
Parse A Selector</h3>
32483248

32493249
This section defines how to <dfn export>parse a selector</dfn> from a string <var>source</var>.
@@ -3252,7 +3252,7 @@ Parse A Selector</h3>
32523252

32533253
<ol>
32543254
<li>
3255-
Let <var>selector</var> be the result of parsing <var>source</var> against the <code>complex_selector_list</code> grammar.
3255+
Let <var>selector</var> be the result of parsing <var>source</var> as a <<selector-list>>.
32563256
If it does not match the grammar,
32573257
return failure.
32583258

@@ -3268,7 +3268,7 @@ Parse A Selector</h3>
32683268
return <var>selector</var>.
32693269
</ol>
32703270

3271-
<h3 id='parse-relative-selector'>
3271+
<h3 id='parse-relative-selector' algorithm>
32723272
Parse A Relative Selector</h3>
32733273

32743274
This section defines how to <dfn export>parse a relative selector</dfn> from a string <var>source</var>,
@@ -3278,7 +3278,7 @@ Parse A Relative Selector</h3>
32783278

32793279
<ol>
32803280
<li>
3281-
Let <var>selector</var> be the result of parsing <var>source</var> against the <code>scope_relative_selector_list</code> grammar.
3281+
Let <var>selector</var> be the result of parsing <var>source</var> as a <<relative-selector-list>>.
32823282
If it does not match the grammar,
32833283
return failure.
32843284

@@ -3297,7 +3297,7 @@ Parse A Relative Selector</h3>
32973297
Return <var>selector</var>.
32983298
</ol>
32993299

3300-
<h3 id='match-against-tree'>
3300+
<h3 id='match-against-tree' algorithm>
33013301
Match a Selector Against A Tree</h3>
33023302

33033303
This section defines how to <dfn export>match a selector against a tree</dfn>.
@@ -3310,7 +3310,7 @@ Match a Selector Against A Tree</h3>
33103310
<li>
33113311
A <a>scoping method</a> and <a>scoping root</a>.
33123312
If not specified,
3313-
the selector defaults to being unscoped.
3313+
the <var>selector</var> defaults to being unscoped.
33143314

33153315
<li>
33163316
A set of <a>:scope elements</a>,
@@ -3334,7 +3334,7 @@ Match a Selector Against A Tree</h3>
33343334
and return the result.
33353335
</ol>
33363336

3337-
<h3 id='match-against-element'>
3337+
<h3 id='match-against-element' algorithm>
33383338
Match a Selector Against an Element</h3>
33393339

33403340
This section defines how to <dfn export>match a selector against an element</dfn>.
@@ -3368,7 +3368,7 @@ Appendix A: Guidance on Mapping Source Documents &amp; Data to an Element Tree</
33683368
<em>This section is informative.</em>
33693369

33703370
The element tree structure described by the DOM is powerful and useful,
3371-
but generic enough to model pretty much any langauge that describes tree-based data
3371+
but generic enough to model pretty much any language that describes tree-based data
33723372
(or even graph-based, with a suitable interpretation).
33733373

33743374
Some languages, like HTML, already have well-defined procedures

0 commit comments

Comments
 (0)