Skip to content

Commit 26ec255

Browse files
committed
[css2] Minor fixes + Steven P comments
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40674
1 parent eba6367 commit 26ec255

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

css2/selector.src

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
4343
selectors</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
4646
selectors</a></TR>
4747
<TR><TD>A &gt; B<TD>Matches any B element that is a child of
4848
an 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>
6565
of 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
7171
equal 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>
8382
and <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
114113
the descendant of another element in the document tree (e.g., "Match
115114
those EM elements that are contained by an H1 element").
116115
<span class="index-def" title="descendant-selectors">descendant
117116
selectors</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
120118
descendant of some <a href="conform.html#doctree">ancestor</a> element
121119
A. 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>
125123
For example, consider the following rules:</p>
@@ -166,7 +164,7 @@ The following selector:
166164
of 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
172170
href="#attribute-selectors">attribute selectors</a>.
@@ -203,7 +201,7 @@ are children of BODY:</p>
203201
<p>A child selector may also contain <a
204202
href="#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>
209207
For instance:
@@ -658,7 +656,7 @@ selector. This may change in future versions of CSS.
658656
title="pseudo-elements:::first-line|:first-line"><a
659657
name="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
662660
the 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
882880
with :before and :after, they apply to the first letter or line of the
883881
element 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
888886
end 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
901899
selectors.</p>
902900

903901
<div class="example"><p>

0 commit comments

Comments
 (0)