@@ -185,7 +185,7 @@ Selectors Overview</h2>
185
185
<tr>
186
186
<td><code> E[foo="bar" s] </code>
187
187
<td> an E element whose <code> foo</code> attribute value is
188
- exactly and case-sensitively equal to <code> bar</code>
188
+ exactly and [= case-sensitively=] equal to <code> bar</code>
189
189
<td> [[#attribute-case]]
190
190
<td> 4
191
191
<tr>
@@ -934,7 +934,7 @@ Internal Structure</h4>
934
934
<h3 id="case-sensitive">
935
935
Characters and case sensitivity</h3>
936
936
937
- All Selectors syntax is case-insensitive within the ASCII range
937
+ All Selectors syntax is [=ASCII case-insensitive=]
938
938
(i.e. [a-z] and \[A-Z] are equivalent),
939
939
except for the parts
940
940
that are not under the control of Selectors:
@@ -1239,7 +1239,7 @@ The Relational Pseudo-class: '':has()''</h3>
1239
1239
...would result matching any <code> <section></code> element
1240
1240
which contains anything that's not a heading element.
1241
1241
</div>
1242
-
1242
+
1243
1243
Supporting the '':has()'' pseudo-class is not required to conform to this specification.
1244
1244
1245
1245
@@ -1387,20 +1387,20 @@ The Defined Pseudo-class: '':defined''</h3>
1387
1387
The <dfn id='defined-pseudo'>:defined</dfn> <a>pseudo-class</a> matches elements
1388
1388
that are fully defined,
1389
1389
as dictated by the host language.
1390
-
1390
+
1391
1391
If the host language does not have this sort of distinction,
1392
1392
all elements in it match '':defined'' .
1393
1393
1394
1394
<div class="example">
1395
1395
In HTML, all built-in elements are always considered to be defined,
1396
1396
so the following example will always match:
1397
-
1397
+
1398
1398
<pre highlight=css> p:defined { ... }</pre>
1399
-
1399
+
1400
1400
[=Custom elements=] , on the other hand,
1401
1401
start out <em> un</em> defined,
1402
1402
and only become defined when <l spec=html> [=element definition|properly registered=] </l> .
1403
- This means the '':defined'' pseudo-class
1403
+ This means the '':defined'' pseudo-class
1404
1404
can be used to hide a custom element
1405
1405
until it has been registered:
1406
1406
@@ -1575,22 +1575,23 @@ Case-sensitivity</h3>
1575
1575
By default case-sensitivity of attribute names and values in selectors
1576
1576
depends on the document language.
1577
1577
1578
- To match attribute values case-insensitively
1578
+ To match attribute values [=ASCII case-insensitively=]
1579
1579
regardless of document language rules,
1580
1580
the attribute selector may include the identifier <code> i</code>
1581
1581
before the closing bracket (<code> ]</code> ).
1582
1582
When this flag is present,
1583
1583
UAs must match the attribute's value
1584
- case-insensitively within the ASCII range.
1584
+ [=ASCII case-insensitively=]
1585
+ (i.e. [a-z] and \[A-Z] are considered equivalent).
1585
1586
1586
1587
Alternately, the attribute selector may include the identifier <code> s</code>
1587
1588
before the closing bracket (<code> ]</code> );
1588
- in this case the UA must match the value case-sensitively (if possible)
1589
+ in this case the UA must match the value [= case-sensitively=]
1589
1590
regardless of document language rules.
1590
1591
1591
1592
Like the rest of Selectors syntax,
1592
- the <code> i</code> and <code> s</code> identifiers are
1593
- <a href="# case-sensitive">case- insensitive</a> within the ASCII range .
1593
+ the <code> i</code> and <code> s</code> identifiers themselves
1594
+ are [=ASCII case-insensitive=] .
1594
1595
1595
1596
<div class="example">
1596
1597
The following rule will style the <code> frame</code> attribute when it
@@ -1619,8 +1620,8 @@ Case-sensitivity</h3>
1619
1620
a later level -->
1620
1621
1621
1622
Note: Some document models normalize case-insensitive attribute values
1622
- at parse time such that case-sensitive matching is impossible.
1623
- Case-sensitive matching via <code> s</code> flags is only possible
1623
+ at parse time such that [= case-sensitive=] matching is impossible.
1624
+ [= Case-sensitive=] matching via <code> s</code> flags is only possible
1624
1625
in systems that preserve the original case.
1625
1626
1626
1627
<h3 id="attrnmsp">
@@ -1792,8 +1793,8 @@ Class selectors</h3>
1792
1793
this specification.
1793
1794
1794
1795
When matching against a document which is in <a>quirks mode</a> ,
1795
- class names must be matched <a lt=" ASCII case-insensitive">ASCII case- insensitively</a> ;
1796
- class selectors are otherwise case-sensitive.
1796
+ class names must be matched [= ASCII case-insensitively=] ;
1797
+ class selectors are otherwise [= case-sensitive=] .
1797
1798
1798
1799
<h3 id="id-selectors">
1799
1800
ID selectors</h3>
@@ -1849,8 +1850,8 @@ ID selectors</h3>
1849
1850
DOM3 Core, XML DTDs, and namespace-specific knowledge.
1850
1851
1851
1852
When matching against a document which is in <a>quirks mode</a> ,
1852
- IDs must be matched <a lt=" ASCII case-insensitive">ASCII case- insensitively</a> ;
1853
- ID selectors are otherwise case-sensitive.
1853
+ IDs must be matched [= ASCII case-insensitively=] ;
1854
+ ID selectors are otherwise [= case-sensitive=] .
1854
1855
1855
1856
<h2 id="linguistic-pseudos">
1856
1857
Linguistic Pseudo-classes</h2>
@@ -1921,7 +1922,7 @@ The Language Pseudo-class: '':lang()''</h3>
1921
1922
its <a>content language</a> , as represented in BCP 47 syntax,
1922
1923
matches the given <a>language range</a> in an <var> extended filtering</var>
1923
1924
operation per [[RFC4647]] <cite> Matching of Language Tags</cite> (section 3.3.2).
1924
- The matching is performed case-insensitively within the ASCII range .
1925
+ The matching is performed [=ASCII case-insensitively=] .
1925
1926
The <a>language range</a> does not need to be a valid language code to
1926
1927
perform this comparison.
1927
1928
0 commit comments