Skip to content

Commit 73071c8

Browse files
committed
[selectors] Try to clarify the 'stuff not under the control of selectors' part more.
1 parent 8a9292c commit 73071c8

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

selectors/Overview.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,15 +1550,17 @@ <h3 id=case-sensitive><span class=secno>3.6. </span> Characters and case
15501550
sensitivity</h3>
15511551

15521552
<p>All Selectors syntax is case-insensitive within the ASCII range (i.e.
1553-
[a-z] and [A-Z] are equivalent), except for the parts that are not under
1554-
the control of Selectors. The case-sensitivity of document language
1555-
element names, attribute names, and attribute values depends on the
1556-
document language. For example, <a
1553+
[a-z] and [A-Z] are equivalent), except for the following parts, which are
1554+
not under the control of Selectors: the case-sensitivity of document
1555+
language element names, attribute names, and attribute values depends on
1556+
the document language. For example, <a
15571557
href="http://www.whatwg.org/html/selectors.html#case-sensitivity">in HTML,
15581558
element names are case-insensitive</a>, but in XML, they are
15591559
case-sensitive. Case sensitivity of namespace prefixes is defined in <a
15601560
href="#CSS3NAMESPACE"
1561-
rel=biblioentry>[CSS3NAMESPACE]<!--{{!CSS3NAMESPACE}}--></a>.
1561+
rel=biblioentry>[CSS3NAMESPACE]<!--{{!CSS3NAMESPACE}}--></a>. Case
1562+
sensitivity of <a href="#language-range"><i>language ranges</i></a> is
1563+
defined in the <a href="#lang-pseudo"><code>:lang()</code></a> section.
15621564

15631565
<p><dfn id=whitespace>White space</dfn> in Selectors consists of the
15641566
characters SPACE (U+0020), TAB (U+0009), LINE FEED (U+000A), CARRIAGE

selectors/Overview.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,9 @@ <h3 id="case-sensitive">
823823

824824
<p>All Selectors syntax is case-insensitive within the ASCII range
825825
(i.e. [a-z] and [A-Z] are equivalent),
826-
except for the parts that are not under the control of Selectors.
827-
The case-sensitivity of
826+
except for the following parts,
827+
which are not under the control of Selectors:
828+
the case-sensitivity of
828829
document language element names,
829830
attribute names,
830831
and attribute values
@@ -833,6 +834,7 @@ <h3 id="case-sensitive">
833834
<a href="http://www.whatwg.org/html/selectors.html#case-sensitivity">in HTML, element names are case-insensitive</a>,
834835
but in XML, they are case-sensitive.
835836
Case sensitivity of namespace prefixes is defined in [[!CSS3NAMESPACE]].
837+
Case sensitivity of <i>language ranges</i> is defined in the <code>:lang()</code> section.
836838

837839
<p><dfn id="whitespace">White space</dfn> in Selectors consists of the
838840
characters SPACE (U+0020), TAB (U+0009), LINE FEED (U+000A),

0 commit comments

Comments
 (0)