Skip to content

Commit 812e3fe

Browse files
committed
Fix or add <dfn>s to some things, and fix several references to use the preprocessor properly.
1 parent ddcd815 commit 812e3fe

2 files changed

Lines changed: 52 additions & 50 deletions

File tree

selectors4/Overview.html

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,30 +1134,32 @@ <h2 id=syntax><span class=secno>3. </span> Selector Syntax and Structure</h2>
11341134

11351135
<h3 id=structure><span class=secno>3.1. </span> Structure and Terminology</h3>
11361136

1137-
<p>The term <dfn id=selector>selector</dfn> can refer to a <i>simple
1138-
selector</i>, <a href="#compound"><i>compound selector</i></a>, <a
1139-
href="#complex"><i>complex selector</i></a>, or <a
1137+
<p>The term <dfn id=selector>selector</dfn> can refer to a <a
1138+
href="#simple"><i>simple selector</i></a>, <a
1139+
href="#compound-selector"><i>compound selector</i></a>, <a
1140+
href="#complex-selector"><i>complex selector</i></a>, or <a
11401141
href="#selector-list"><i>selector list</i></a>.
11411142

1142-
<p>A <dfn id=complex>complex selector</dfn> is a chain of one or more <a
1143-
href="#compound">compound selectors</a> separated by <a
1144-
href="#combinators">combinators</a>.
1145-
1146-
<p>A <dfn id=compound>compound selector</dfn> is a chain of <a
1147-
href="#simple">simple selectors</a> that are not separated by a <a
1148-
href="#combinators">combinator</a>. It always begins with a <a
1149-
href="#type-selectors">type selector</a> or a (possibly implied) <a
1150-
href="#universal-selector">universal selector</a>. No other type selector
1151-
or universal selector is allowed in the sequence.
1152-
1153-
<p>A <dfn id=simple><a href="#simple">simple selector</a></dfn> is either a
1154-
<a href="#type-selectors">type selector</a>, <a
1155-
href="#universal-selector">universal selector</a>, <a
1156-
href="#attribute-selectors">attribute selector</a>, <a
1157-
href="#class-html">class selector</a>, <a href="#id-selectors">ID
1158-
selector</a>, or <a href="#pseudo-classes">pseudo-class</a>.
1159-
1160-
<p><dfn id=combinator>Combinators</dfn> are punctuation that represent a
1143+
<p>A <dfn id=complex-selector>complex selector</dfn> is a chain of one or
1144+
more <a href="#compound-selector"><i>compound selectors</i></a> separated
1145+
by <a href="#combinator"><i>combinators</i></a>.
1146+
1147+
<p>A <dfn id=compound-selector>compound selector</dfn> is a chain of <a
1148+
href="#simple"><i>simple selectors</i></a> that are not separated by a <a
1149+
href="#combinator"><i>combinator</i></a>. It always begins with a <a
1150+
href="#type-selector"><i>type selector</i></a> or a (possibly implied) <a
1151+
href="#universal-selector0"><i>universal selector</i></a>. No other type
1152+
selector or universal selector is allowed in the sequence.
1153+
1154+
<p> A <dfn id=simple>simple selector</dfn> is either a <a
1155+
href="#type-selector"><i>type selector</i></a>, <a
1156+
href="#universal-selector0"><i>universal selector</i></a>, <a
1157+
href="#attribute-selector"><i>attribute selector</i></a>, <a
1158+
href="#class-selector"><i>class selector</i></a>, <a
1159+
href="#id-selector"><i>ID selector</i></a>, or <a
1160+
href="#pseudo-class"><i>pseudo-class</i></a>.
1161+
1162+
<p>A <dfn id=combinator>combinator</dfn> is punctuation that represents a
11611163
particular kind of relationship between the compound selectors on either
11621164
side. Combinators in Selectors level 4 include: whitespace,
11631165
&quot;greater-than sign&quot; (U+003E, <code>&gt;</code>), &quot;plus
@@ -1215,8 +1217,8 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
12151217

12161218
<dd> With this method of scoping, selectors match as if the <a
12171219
href="#scoping-element"><i>scoping element</i></a> were the root of the
1218-
document: all <a href="#compound"><i>compound selectors</i></a> must
1219-
match elements within the scope. (The <a
1220+
document: all <a href="#compound-selector"><i>compound selectors</i></a>
1221+
must match elements within the scope. (The <a
12201222
href="#roo-pseudo"><code>:root</code></a> pseudo-class, however, still
12211223
only matches the actual root of the document.)
12221224

@@ -1236,9 +1238,9 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
12361238

12371239
<h3 id=pseudo-classes><span class=secno>3.4. </span> Pseudo-classes</h3>
12381240

1239-
<p>The pseudo-class concept is introduced to permit selection based on
1240-
information that lies outside of the document tree or that cannot be
1241-
expressed using the other simple selectors.
1241+
<p>The <dfn id=pseudo-class>pseudo-class</dfn> concept is introduced to
1242+
permit selection based on information that lies outside of the document
1243+
tree or that cannot be expressed using the other simple selectors.
12421244

12431245
<p>A pseudo-class always consists of a &quot;colon&quot; (<code>:</code>)
12441246
followed by the name of the pseudo-class and, for functional

selectors4/Overview.src.html

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -509,30 +509,30 @@ <h2 id="syntax">
509509
<h3 id="structure">
510510
Structure and Terminology</h3>
511511

512-
<p>The term <dfn id="selector">selector</dfn> can refer to a <i>simple selector</i>,
512+
<p>The term <dfn>selector</dfn> can refer to a <i>simple selector</i>,
513513
<i>compound selector</i>, <i>complex selector</i>, or <i>selector list</i>.
514514

515-
<p>A <dfn id="complex">complex selector</dfn> is a chain of one
516-
or more <a href="#compound">compound selectors</a>
517-
separated by <a href="#combinators">combinators</a>.</p>
518-
519-
<p>A <dfn id="compound">compound selector</dfn>
520-
is a chain of <a href="#simple">simple selectors</a>
521-
that are not separated by a <a href="#combinators">combinator</a>. It
522-
always begins with a <a href="#type-selectors">type selector</a> or a
523-
(possibly implied) <a href="#universal-selector">universal selector</a>.
524-
No other type selector or universal selector is allowed in the sequence.</p>
525-
526-
<p>A <dfn id="simple"><a
527-
href="#simple">simple selector</a></dfn> is either a <a
528-
href="#type-selectors">type selector</a>, <a
529-
href="#universal-selector">universal selector</a>, <a
530-
href="#attribute-selectors">attribute selector</a>, <a
531-
href="#class-html">class selector</a>, <a
532-
href="#id-selectors">ID selector</a>, or <a
533-
href="#pseudo-classes">pseudo-class</a>.</p>
534-
535-
<p><dfn id="combinator">Combinators</dfn> are punctuation that represent a particular
515+
<p>A <dfn>complex selector</dfn> is a chain of one
516+
or more <i>compound selectors</i>
517+
separated by <i>combinators</i>.
518+
519+
<p>A <dfn>compound selector</dfn>
520+
is a chain of <i>simple selectors</i>
521+
that are not separated by a <i>combinator</i>. It
522+
always begins with a <i>type selector</i> or a
523+
(possibly implied) <i>universal selector</i>.
524+
No other type selector or universal selector is allowed in the sequence.
525+
526+
<p>
527+
A <dfn id="simple">simple selector</dfn> is either a
528+
<i>type selector</i>,
529+
<i>universal selector</i>,
530+
<i>attribute selector</i>,
531+
<i>class selector</i>,
532+
<i>ID selector</i>,
533+
or <i>pseudo-class</i>.
534+
535+
<p>A <dfn>combinator</dfn> is punctuation that represents a particular
536536
kind of relationship between the compound selectors on either side.
537537
Combinators in Selectors level 4 include: whitespace, &quot;greater-than
538538
sign&quot; (U+003E, <code>&gt;</code>), &quot;plus sign&quot; (U+002B,
@@ -602,7 +602,7 @@ <h3 id="scoping">
602602
<h3 id="pseudo-classes">
603603
Pseudo-classes</h3>
604604

605-
<p>The pseudo-class concept is introduced to permit selection based on
605+
<p>The <dfn>pseudo-class</dfn> concept is introduced to permit selection based on
606606
information that lies outside of the document tree or that cannot be
607607
expressed using the other simple selectors.</p>
608608

0 commit comments

Comments
 (0)