Skip to content

Commit 936bbf8

Browse files
committed
Put case-insensitive flag inside attr selector per <http://lists.w3.org/Archives/Public/www-style/2011Jul/0440.html>
1 parent 7c677f7 commit 936bbf8

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

selectors4/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,9 +1461,9 @@ <h3 id=attribute-case><span class=secno>6.3. </span> Case-sensitivity</h3>
14611461
<p>By default case-sensitivity of attribute names and values in selectors
14621462
depends on the document language. To match attribute values
14631463
case-insensitively regardless of document language rules, the attribute
1464-
selector may be immediately followed by the identifier <code>i</code>.
1465-
When this flag is present, UAs must match the attribute's value
1466-
case-insensitively within the ASCII range.
1464+
selector may include the identifier <code>i</code> immediately inside the
1465+
closing bracket (<code>]</code>). When this flag is present, UAs must
1466+
match the attribute's value case-insensitively within the ASCII range.
14671467

14681468
<div class=example>
14691469
<p>The following rule will style the <code>frame</code> attribute when it
@@ -1472,7 +1472,7 @@ <h3 id=attribute-case><span class=secno>6.3. </span> Case-sensitivity</h3>
14721472
in an XML environment where attribute values are case-sensitive.
14731473

14741474
<pre>
1475-
<!-- -->[frame=hsides]i { border-style: solid none; }
1475+
<!-- -->[frame=hsides i] { border-style: solid none; }
14761476
</pre>
14771477
</div>
14781478

selectors4/Overview.src.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -981,17 +981,18 @@ <h3 id=attribute-case>
981981

982982
<p>By default case-sensitivity of attribute names and values in selectors
983983
depends on the document language. To match attribute values case-insensitively
984-
regardless of document language rules, the attribute selector may be immediately
985-
followed by the identifier <code>i</code>. When this flag is present, UAs
986-
must match the attribute's value case-insensitively within the ASCII range.
984+
regardless of document language rules, the attribute selector may include the
985+
identifier <code>i</code> immediately inside the closing bracket (<code>]</code>).
986+
When this flag is present, UAs must match the attribute's value
987+
case-insensitively within the ASCII range.
987988

988989
<div class="example">
989990
<p>The following rule will style the <code>frame</code> attribute when it
990991
has a value of <code>hsides</code>, whether that value is represented
991992
as <code>hsides</code>, <code>HSIDES</code>, <code>hSides</code>, etc.
992993
even in an XML environment where attribute values are case-sensitive.
993994
<pre>
994-
<!-- -->[frame=hsides]i { border-style: solid none; }
995+
<!-- -->[frame=hsides i] { border-style: solid none; }
995996
</pre>
996997
</div>
997998

0 commit comments

Comments
 (0)