Skip to content

Commit 5bef870

Browse files
committed
[selectors-4][editorial] Partial revert of so-called “bikeshed fixes” in 3a0c959 to preserve readability and communication of intent for people who don't live in the Infra spec.
1 parent 887dbb3 commit 5bef870

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

selectors-4/Overview.bs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,8 @@ Case-sensitivity</h3>
16121612

16131613
Alternately, the attribute selector may include the identifier <code>s</code>
16141614
before the closing bracket (<code>]</code>);
1615-
in this case the UA must match the value with "[=identical to=]" semantics
1615+
in this case the UA must match the value case-sensitively,
1616+
with “[=identical to=]” semantics [[INFRA]],
16161617
regardless of document language rules.
16171618

16181619
Like the rest of Selectors syntax,
@@ -1646,8 +1647,8 @@ Case-sensitivity</h3>
16461647
a later level -->
16471648

16481649
Note: Some document models normalize case-insensitive attribute values at parse time
1649-
such that checking if a string is [=identical to=] another is impossible.
1650-
Correct matching via <code>s</code> flags is only possible
1650+
such that checking if a string is case-sensitive matching is impossible.
1651+
Case-sensitive matching via <code>s</code> flags is only possible
16511652
in systems that preserve the original case.
16521653

16531654
<h3 id="attrnmsp">
@@ -1819,7 +1820,8 @@ Class selectors</h3>
18191820

18201821
When matching against a document which is in <a>quirks mode</a>,
18211822
class names must be matched [=ASCII case-insensitively=];
1822-
class selectors otherwise only match class names they are [=identical to=].
1823+
class selectors are otherwise case-sensitive,
1824+
only matching class names they are [=identical to=]. [[INFRA]]
18231825

18241826
<h3 id="id-selectors">
18251827
ID selectors</h3>
@@ -1876,7 +1878,8 @@ ID selectors</h3>
18761878

18771879
When matching against a document which is in <a>quirks mode</a>,
18781880
IDs must be matched [=ASCII case-insensitively=];
1879-
ID selectors otherwise only match IDs they are [=identical to=].
1881+
ID selectors are otherwise case-sensitive,
1882+
only matching IDs they are [=identical to=]. [[INFRA]]
18801883

18811884
<h2 id="linguistic-pseudos">
18821885
Linguistic Pseudo-classes</h2>

0 commit comments

Comments
 (0)