11<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22<html lang="en">
3- <!-- $Id: selector.src,v 1.47 1998-01-15 22:11:57 howcome Exp $ -->
3+ <!-- $Id: selector.src,v 1.48 1998-01-20 23:27:35 ijacobs Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<title>Selectors</title>
@@ -42,7 +42,7 @@ selector</a></TR>
4242<TR><TD>E<TD>Matches any E element.<TD><a href="#type-selectors">Type
4343selectors</a></TR>
4444<TR><TD>A B<TD>Matches any B element that is a descendant of
45- an A element.<TD><a href="#descendant-selectors">Descendent
45+ an A element.<TD><a href="#descendant-selectors">Descendant
4646selectors</a></TR>
4747<TR><TD>A > B<TD>Matches any B element that is a child of
4848an element A.<TD><a href="#child-selectors">Child selectors</a></TR>
@@ -65,7 +65,7 @@ an element E.<TD><a href="#adjacent-selectors">Adjacent selectors</a>
6565of values, one of which is exactly equal to "warning".
6666<TD><a href="#attribute-selectors">Attribute selectors</a>
6767</TR>
68- <TR><TD>DIV.warning<TD>HTML only. The same as DIV[class~="warning"].
68+ <TR><TD>DIV.warning<TD><em> HTML only</em> . The same as DIV[class~="warning"].
6969<TD><a href="#class-html">The "class" attribute in HTML</a></TR>
7070<TR><TD>E#myid<TD>Matches any E element with the "id" attribute
7171equal to "myid".<TD><a href="#id-selectors">ID selectors</a></TR>
@@ -74,10 +74,9 @@ equal to "myid".<TD><a href="#id-selectors">ID selectors</a></TR>
7474<h2><a name="universal-selector">Universal selector</a></h2>
7575
7676<P>The <span class="index-def" title="universal selector">universal
77- selector</span> matches the name of any element type. <!--It only matches
78- a single node in the document tree.-->
79-
80- <P>The universal selector is written as an asterisk (*).
77+ selector</span> -- written "*" -- matches the name of any element
78+ type. It only matches a single node in the <a
79+ href="conform.html#doctree">document tree.</a>
8180
8281<P>In <a href="#attribute-selectors">attribute selectors</a>
8382and <a href="#id-selectors">id selectors</a>, the absence of
@@ -108,18 +107,17 @@ document tree:
108107
109108<p>Type selectors may be <a href="#grouping">grouped</a>.
110109
111- <h2><a name="descendant-selectors">Descendent selectors</a></h2>
110+ <h2><a name="descendant-selectors">Descendant selectors</a></h2>
112111
113112<p>At times, authors may want selectors to match an element that is
114113the descendant of another element in the document tree (e.g., "Match
115114those EM elements that are contained by an H1 element").
116115<span class="index-def" title="descendant-selectors">descendant
117116selectors</span> express such a relationship in a pattern.
118-
119- <p>A contextual selector matches when an element B is an arbitrary
117+ A descendant selector matches when an element B is an arbitrary
120118descendant of some <a href="conform.html#doctree">ancestor</a> element
121119A. A descendant selector is made up of two or more selectors separated
122- by white space .
120+ by <a href="syndata.html#whitespace">whitespace</a> .
123121
124122<div class="example"><p>
125123For example, consider the following rules:</p>
@@ -166,7 +164,7 @@ The following selector:
166164of a DIV element.
167165</div>
168166
169- <p>Descendent selectors may be <a href="#grouping">grouped</a>.
167+ <p>Descendant selectors may be <a href="#grouping">grouped</a>.
170168
171169<P>A descendant selector may also contain <a
172170href="#attribute-selectors">attribute selectors</a>.
@@ -203,7 +201,7 @@ are children of BODY:</p>
203201<p>A child selector may also contain <a
204202href="#attribute-selectors">attribute selectors</a>.
205203
206- <p>Descendent selectors and child selectors may be combined.
204+ <p>Descendant selectors and child selectors may be combined.
207205
208206<div class="example"><P>
209207For instance:
@@ -658,7 +656,7 @@ selector. This may change in future versions of CSS.
658656title="pseudo-elements:::first-line|:first-line"><a
659657name="first-line-pseudo">:first-line</a></span> pseudo-element</h3>
660658
661- <p>The :first-line pseudo-element is used to apply special styles to
659+ <p>The :first-line pseudo-element applies special styles to
662660the first formatted line of a paragraph. For instance:</p>
663661
664662<pre class="example">
@@ -882,9 +880,9 @@ element. Properties set on :first-line are inherited by
882880with :before and :after, they apply to the first letter or line of the
883881element including the inserted text.
884882
885- <h3>Pseudo-elements with contextual selectors</h3>
883+ <h3>Pseudo-elements with descendant selectors</h3>
886884
887- <p>In a contextual selector, pseudo-elements are only allowed at the
885+ <p>In a descendant selector, pseudo-elements are only allowed at the
888886end of the selector.</p>
889887
890888<div class="example"><p>
@@ -897,7 +895,7 @@ pseudo-element.</p>
897895</pre>
898896</div>
899897
900- <p><em>Pseudo-classes</em>, however, may also be used in contextual
898+ <p><em>Pseudo-classes</em>, however, may also be used in descendant
901899selectors.</p>
902900
903901<div class="example"><p>
0 commit comments