Skip to content

Commit cbbc4e6

Browse files
committed
Fix markup errors
1 parent c9bbd41 commit cbbc4e6

2 files changed

Lines changed: 32 additions & 40 deletions

File tree

selectors4/Overview.html

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,24 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
123123
<ul class=toc>
124124
<li><a href="#context"><span class=secno>1. </span> Introduction</a>
125125
<ul class=toc>
126-
<li><a href="#context"><span class=secno>1.1. </span>Background</a>
127-
128-
<li><a href="#placement"><span class=secno>1.2. </span>Module
126+
<li><a href="#placement"><span class=secno>1.1. </span>Module
129127
Interactions</a>
130128

131-
<li><a href="#conventions"><span class=secno>1.3. </span>Document
129+
<li><a href="#conventions"><span class=secno>1.2. </span>Document
132130
Conventions</a>
133131
</ul>
134132

135133
<li><a href="#overview"><span class=secno>2. </span> Selectors
136134
Overview</a>
137135

138-
<li><a href="#syntax"><span class=secno>3. </span> Selector Syntax</a>
136+
<li><a href="#syntax"><span class=secno>3. </span> Selector Syntax and
137+
Structure</a>
139138
<ul class=toc>
140139
<li><a href="#structure"><span class=secno>3.1. </span> Structure and
141-
Terminology </a>
140+
Terminology</a>
142141

143142
<li><a href="#subject"><span class=secno>3.2. </span> Subject of a
144-
Selector </a>
143+
Selector</a>
145144

146145
<li><a href="#case-sensitive"><span class=secno>3.3. </span> Characters
147146
and case sensitivity</a>
@@ -155,8 +154,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
155154
<li><a href="#logical-combination"><span class=secno>4. </span> Logical
156155
Combinations</a>
157156
<ul class=toc>
158-
<li><a href="#grouping"><span class=secno>4.1. </span> Selector Lists
159-
</a>
157+
<li><a href="#grouping"><span class=secno>4.1. </span> Selector
158+
Lists</a>
160159

161160
<li><a href="#matches"><span class=secno>4.2. </span> The Matches-Any
162161
Pseudo-class: &lsquo;<code class=css>:matches()</code>&rsquo;</a>
@@ -265,7 +264,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
265264
<li><a href="#nth-match"><span class=secno>11.6. </span> :nth-match()
266265
pseudo-class</a>
267266

268-
<li><a href="#nth-match"><span class=secno>11.7. </span>
267+
<li><a href="#nth-last-match"><span class=secno>11.7. </span>
269268
:nth-last-match() pseudo-class</a>
270269

271270
<li><a href="#first-child-pseudo"><span class=secno>11.8. </span>
@@ -312,8 +311,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
312311
<li><a href="#specificity"><span class=secno>13. </span> Calculating a
313312
selector's specificity</a>
314313

315-
<li><a href="#grammar"><span class=secno>14. </span> The grammar of
316-
Selectors</a>
314+
<li><a href="#formal-syntax"><span class=secno>14. </span> Formal
315+
Syntax</a>
317316
<ul class=toc>
318317
<li><a href="#grammar"><span class=secno>14.1. </span> Grammar</a>
319318

@@ -350,8 +349,6 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
350349

351350
<h2 id=context><span class=secno>1. </span> Introduction</h2>
352351

353-
<h3 id=context><span class=secno>1.1. </span>Background</h3>
354-
355352
<p><em>This section is not normative.</em>
356353

357354
<p>Selectors define the following function:
@@ -375,7 +372,7 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
375372
href="http://www.w3.org/TR/css3-selectors/">Selectors Level 3</a>
376373
specifications, respectively.
377374

378-
<h3 id=placement><span class=secno>1.2. </span>Module Interactions</h3>
375+
<h3 id=placement><span class=secno>1.1. </span>Module Interactions</h3>
379376

380377
<p>This module replaces the definitions for, and extends the set of
381378
selectors (aside from pseudo-element selectors) defined for CSS in
@@ -387,7 +384,7 @@ <h3 id=placement><span class=secno>1.2. </span>Module Interactions</h3>
387384
described here, but they are defined in a separate Pseudo-Element
388385
Selectors Level 4 module.
389386

390-
<h3 id=conventions><span class=secno>1.3. </span>Document Conventions</h3>
387+
<h3 id=conventions><span class=secno>1.2. </span>Document Conventions</h3>
391388

392389
<p>Conformance requirements are expressed with a combination of descriptive
393390
assertions and RFC 2119 terminology. The key words “MUST”, “MUST
@@ -797,7 +794,7 @@ <h2 id=overview><span class=secno>2. </span> Selectors Overview</h2>
797794
<p>The meaning of each selector is derived from the table above by
798795
prepending "matches" to the contents of each cell in the "Meaning" column.
799796

800-
<h2 id=syntax><span class=secno>3. </span> Selector Syntax</h2>
797+
<h2 id=syntax><span class=secno>3. </span> Selector Syntax and Structure</h2>
801798

802799
<h3 id=structure><span class=secno>3.1. </span> Structure and Terminology</h3>
803800

@@ -1801,9 +1798,10 @@ <h3 id=dir-pseudo><span class=secno>9.1. </span> The directionality
18011798
determined by the document language. For example, in HTML <a
18021799
href="#HTML401" rel=biblioentry>[HTML401]<!--{{HTML401}}--></a>, the
18031800
directionality of an element is determined by the <code>dir</code>
1804-
attribute. The <code>:dir()<code> pseudo-class does not select based on
1805-
stylistic states&#8212;for example, the CSS 'direction' property does not
1806-
affect whether it matches. </code></code>
1801+
attribute. The <code>:dir()</code> pseudo-class does not select based on
1802+
stylistic states&#8212;for example, the CSS &lsquo;<code
1803+
class=property>direction</code>&rsquo; property does not affect whether it
1804+
matches.
18071805

18081806
<p>The pseudo-class <code>:dir(ltr)</code> represents an element that has a
18091807
directionality of left-to-right (<code>ltr</code>). The pseudo-class
@@ -1940,9 +1938,6 @@ <h3 id=checked><span class=secno>10.2. </span> The :checked pseudo-class</h3>
19401938
pseudo-class:
19411939

19421940
<pre>:not(:checked)</pre>
1943-
1944-
<pre>
1945-
</pre>
19461941
</div>
19471942

19481943
<h3 id=indeterminate><span class=secno>10.3. </span> The :indeterminate
@@ -1951,8 +1946,8 @@ <h3 id=indeterminate><span class=secno>10.3. </span> The :indeterminate
19511946
<p>Radio and checkbox elements can be toggled between checked and unchecked
19521947
states, but are sometimes in an indeterminate state, neither checked nor
19531948
unchecked. The <code>:indeterminate</code> pseudo-class applies to such
1954-
elements. Like the <code>:checked<code> pseudo-class, it applies to all
1955-
media.</code></code>
1949+
elements. Like the <code>:checked</code> pseudo-class, it applies to all
1950+
media.
19561951

19571952
<p>Components of a radio-group initialized with no pre-selected choice are
19581953
an example of :indeterminate state.
@@ -2200,7 +2195,7 @@ <h3 id=nth-match><span class=secno>11.6. </span> :nth-match() pseudo-class</h3>
22002195
class=css><code>odd</code></code>&rsquo; keywords.
22012196
<!-- define <selector>. Split an+b into a similar <notation> -->
22022197

2203-
<h3 id=nth-match><span class=secno>11.7. </span> :nth-last-match()
2198+
<h3 id=nth-last-match><span class=secno>11.7. </span> :nth-last-match()
22042199
pseudo-class</h3>
22052200

22062201
<p><code>:nth-match(<a href="#selector"><var>selector</var></a>,
@@ -2549,7 +2544,7 @@ <h2 id=specificity><span class=secno>13. </span> Calculating a selector's
25492544
specified in an HTML <code>style</code> attribute is described in CSS 2.1.
25502545
<a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>.
25512546

2552-
<h2 id=grammar><span class=secno>14. </span> The grammar of Selectors</h2>
2547+
<h2 id=formal-syntax><span class=secno>14. </span> Formal Syntax</h2>
25532548

25542549
<h3 id=grammar><span class=secno>14.1. </span> Grammar</h3>
25552550

selectors4/Overview.src.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ <h2 class="no-num no-toc" id="contents">Table of contents</h2>
7373
<h2 id=context>
7474
Introduction</h2>
7575

76-
<h3 id="context">Background</h3>
77-
7876
<p><em>This section is not normative.</em>
7977

8078
<p>Selectors define the following function:</p>
@@ -414,10 +412,10 @@ <h2 id=overview>
414412
column.</p>
415413

416414
<h2 id=syntax>
417-
Selector Syntax</h2>
415+
Selector Syntax and Structure</h2>
418416

419417
<h3 id=structure>
420-
Structure and Terminology</h2>
418+
Structure and Terminology</h3>
421419

422420
<p>The term <dfn>selector</dfn> can refer to a <i>simple selector</i>,
423421
<i>compound selector</i>, <i>complex selector</i>, or <i>selector list</i>.
@@ -454,7 +452,7 @@ <h3 id=structure>
454452
<a href="#invalid">invalid selector</a>.</p>
455453

456454
<h3 id=subject>
457-
Subject of a Selector
455+
Subject of a Selector</h3>
458456

459457
<p>The elements of a document tree that are represented by a selector
460458
are the <dfn>subjects</dfn> of the selector.
@@ -538,7 +536,7 @@ <h2 id=logical-combination>
538536
Logical Combinations</h2>
539537

540538
<h3 id=grouping>
541-
Selector Lists</h2>
539+
Selector Lists</h3>
542540

543541
<p>A comma-separated list of selectors represents the union of all
544542
elements selected by each of the individual selectors in the
@@ -1356,7 +1354,7 @@ <h3 id="dir-pseudo">
13561354
determined by the document language.
13571355
For example, in HTML [[HTML401]], the directionality of an element
13581356
is determined by the <code>dir</code> attribute.
1359-
The <code>:dir()<code> pseudo-class does not select based on stylistic
1357+
The <code>:dir()</code> pseudo-class does not select based on stylistic
13601358
states&#8212;for example, the CSS 'direction' property does not affect
13611359
whether it matches.
13621360

@@ -1487,7 +1485,7 @@ <h3 id=checked>
14871485
<div class="example">
14881486
<p>An unchecked checkbox can be selected by using the <code>:not()</code>
14891487
pseudo-class:
1490-
<pre>:not(:checked)<pre>
1488+
<pre>:not(:checked)</pre>
14911489
</div>
14921490

14931491
<h3 id=indeterminate>
@@ -1497,11 +1495,10 @@ <h3 id=indeterminate>
14971495
unchecked states, but are sometimes in an indeterminate state,
14981496
neither checked nor unchecked.
14991497
The <code>:indeterminate</code> pseudo-class applies to such elements.
1500-
Like the <code>:checked<code> pseudo-class, it applies to all media.</p>
1498+
Like the <code>:checked</code> pseudo-class, it applies to all media.</p>
15011499

15021500
<p>Components of a radio-group initialized with no pre-selected choice
15031501
are an example of :indeterminate state.</p>
1504-
</div>
15051502

15061503
<h2 id=structural-pseudos>
15071504
Structural pseudo-classes</h2>
@@ -1737,7 +1734,7 @@ <h3 id=nth-match>
17371734

17381735
<!-- define <selector>. Split an+b into a similar <notation> -->
17391736

1740-
<h3 id=nth-match>
1737+
<h3 id=nth-last-match>
17411738
:nth-last-match() pseudo-class</h3>
17421739

17431740
<p><code>:nth-match(<var>selector</var>, <var>a</var>n+<var>b</var>)</code>
@@ -2041,8 +2038,8 @@ <h2 id=specificity>
20412038
specified in an HTML <code>style</code> attribute is described in CSS
20422039
2.1. [[!CSS21]].</p>
20432040

2044-
<h2 id=grammar>
2045-
The grammar of Selectors</h2>
2041+
<h2 id=formal-syntax>
2042+
Formal Syntax</h2>
20462043

20472044
<h3 id=grammar>
20482045
Grammar</h3>

0 commit comments

Comments
 (0)