Skip to content
Permalink
Browse files
[giow] (2) Make ol[type=x] case-sensitive in HTML. Make <ul type='dis…
…c'> case-insensitive in XML.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10245

git-svn-id: http://svn.whatwg.org/webapps@5450 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 8, 2010
1 parent 2256b18 commit e8346202a23e1a03990ccedca96c455d85b20238
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 35 deletions.
@@ -52886,7 +52886,8 @@ <h4 id=selectors><span class=secno>4.14.1 </span>Case-sensitivity</h4>
<p>Attribute selectors on an <a href=#html-elements title="HTML elements">HTML
element</a> in an <a href=#html-documents title="HTML documents">HTML
document</a> must treat the <em>values</em> of attributes with
the following names as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>:</p>
the following names as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>, with one
exception as noted below:</p>

<!-- based on Mozilla's list, which was itself based on HTML4 -->
<!-- WebKit's was identical at the time of writing except as noted below -->
@@ -52932,13 +52933,16 @@ <h4 id=selectors><span class=secno>4.14.1 </span>Case-sensitivity</h4>
<li><code title="">shape</code>
<li><code title="">target</code>
<li><code title="">text</code>
<li><code title="">type</code>
<li><code title="">type</code> (except as specified below)
<li><code title="">valign</code>
<li><code title="">valuetype</code>
<li><code title="">vlink</code>
</ul><p>All other attribute values on <a href=#html-elements>HTML elements</a> must be
treated as <a href=#case-sensitive>case-sensitive</a>.</p>

<p>The exception to the list above is the <code title=attr-ol-type><a href=#attr-ol-type>type</a></code> attribute on <code><a href=#the-ol-element>ol</a></code>
elements, which must be treated as <a href=#case-sensitive>case-sensitive</a>.</p>


<h4 id=pseudo-classes><span class=secno>4.14.2 </span>Pseudo-classes</h4>

@@ -84254,13 +84258,13 @@ <h4 id=introduction-12><span class=secno>14.2.1 </span>Introduction</h4>
as appropriate for elements whose 'direction' property is 'ltr', and
are expected to be flipped around on elements whose 'direction'
property is 'rtl'. These are marked "<dfn id=ltr-specific>LTR-specific</dfn>".</p>

<p id=case-sensitive-selector-exception>For the purpose of the
<!--
<p id="case-sensitive-selector-exception">For the purpose of the
rules marked "case-sensitive", user agents are expected to use
case-sensitive matching of attribute values rather than
case-insensitive matching, regardless of whether a case-insensitive
matching is normally required for the given attribute.</p>

-->
<p id=case-insensitive-selector-exception>Similarly, for the
purpose of the rules marked "case-insensitive", user agents are
expected to use <a href=#ascii-case-insensitive>ASCII case-insensitive</a> matching of
@@ -84991,13 +84995,13 @@ <h4 id=punctuation-and-decorations><span class=secno>14.2.6 </span>Punctuation a
br[clear=all], br[clear=both] { clear: both; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */

ol[type=1], li[type=1] { list-style-type: decimal; }
ol[type=a], li[type=a] { list-style-type: lower-alpha; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ol[type=A], li[type=A] { list-style-type: upper-alpha; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ol[type=i], li[type=i] { list-style-type: lower-roman; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ol[type=I], li[type=I] { list-style-type: upper-roman; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ul[type=disc], li[type=disc] { list-style-type: disc; }
ul[type=circle], li[type=circle] { list-style-type: circle; }
ul[type=square], li[type=square] { list-style-type: square; }
ol[type=a], li[type=a] { list-style-type: lower-alpha; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=A], li[type=A] { list-style-type: upper-alpha; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=i], li[type=i] { list-style-type: lower-roman; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=I], li[type=I] { list-style-type: upper-roman; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ul[type=disc], li[type=disc] { list-style-type: disc; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */
ul[type=circle], li[type=circle] { list-style-type: circle; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */
ul[type=square], li[type=square] { list-style-type: square; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */

table[rules=none], table[rules=groups], table[rules=rows],
table[rules=cols], table[rules=all] {
28 index
@@ -52866,7 +52866,8 @@ contradict people?
<p>Attribute selectors on an <a href=#html-elements title="HTML elements">HTML
element</a> in an <a href=#html-documents title="HTML documents">HTML
document</a> must treat the <em>values</em> of attributes with
the following names as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>:</p>
the following names as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>, with one
exception as noted below:</p>

<!-- based on Mozilla's list, which was itself based on HTML4 -->
<!-- WebKit's was identical at the time of writing except as noted below -->
@@ -52912,13 +52913,16 @@ contradict people?
<li><code title="">shape</code>
<li><code title="">target</code>
<li><code title="">text</code>
<li><code title="">type</code>
<li><code title="">type</code> (except as specified below)
<li><code title="">valign</code>
<li><code title="">valuetype</code>
<li><code title="">vlink</code>
</ul><p>All other attribute values on <a href=#html-elements>HTML elements</a> must be
treated as <a href=#case-sensitive>case-sensitive</a>.</p>

<p>The exception to the list above is the <code title=attr-ol-type><a href=#attr-ol-type>type</a></code> attribute on <code><a href=#the-ol-element>ol</a></code>
elements, which must be treated as <a href=#case-sensitive>case-sensitive</a>.</p>


<h4 id=pseudo-classes><span class=secno>4.14.2 </span>Pseudo-classes</h4>

@@ -80172,13 +80176,13 @@ document.body.appendChild(text);
as appropriate for elements whose 'direction' property is 'ltr', and
are expected to be flipped around on elements whose 'direction'
property is 'rtl'. These are marked "<dfn id=ltr-specific>LTR-specific</dfn>".</p>

<p id=case-sensitive-selector-exception>For the purpose of the
<!--
<p id="case-sensitive-selector-exception">For the purpose of the
rules marked "case-sensitive", user agents are expected to use
case-sensitive matching of attribute values rather than
case-insensitive matching, regardless of whether a case-insensitive
matching is normally required for the given attribute.</p>

-->
<p id=case-insensitive-selector-exception>Similarly, for the
purpose of the rules marked "case-insensitive", user agents are
expected to use <a href=#ascii-case-insensitive>ASCII case-insensitive</a> matching of
@@ -80909,13 +80913,13 @@ br[clear=right] { clear: right; } /* <a href=#case-insensitive-selector-exceptio
br[clear=all], br[clear=both] { clear: both; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */

ol[type=1], li[type=1] { list-style-type: decimal; }
ol[type=a], li[type=a] { list-style-type: lower-alpha; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ol[type=A], li[type=A] { list-style-type: upper-alpha; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ol[type=i], li[type=i] { list-style-type: lower-roman; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ol[type=I], li[type=I] { list-style-type: upper-roman; } /* <a href=#case-sensitive-selector-exception>case-sensitive</a> */
ul[type=disc], li[type=disc] { list-style-type: disc; }
ul[type=circle], li[type=circle] { list-style-type: circle; }
ul[type=square], li[type=square] { list-style-type: square; }
ol[type=a], li[type=a] { list-style-type: lower-alpha; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=A], li[type=A] { list-style-type: upper-alpha; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=i], li[type=i] { list-style-type: lower-roman; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=I], li[type=I] { list-style-type: upper-roman; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ul[type=disc], li[type=disc] { list-style-type: disc; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */
ul[type=circle], li[type=circle] { list-style-type: circle; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */
ul[type=square], li[type=square] { list-style-type: square; } /* <a href=#case-insensitive-selector-exception>case-insensitive</a> */

table[rules=none], table[rules=groups], table[rules=rows],
table[rules=cols], table[rules=all] {
27 source
@@ -59170,7 +59170,8 @@ contradict people?
<p>Attribute selectors on an <span title="HTML elements">HTML
element</span> in an <span title="HTML documents">HTML
document</span> must treat the <em>values</em> of attributes with
the following names as <span>ASCII case-insensitive</span>:</p>
the following names as <span>ASCII case-insensitive</span>, with one
exception as noted below:</p>

<!-- based on Mozilla's list, which was itself based on HTML4 -->
<!-- WebKit's was identical at the time of writing except as noted below -->
@@ -59217,7 +59218,7 @@ contradict people?
<li><code title="">shape</code>
<li><code title="">target</code>
<li><code title="">text</code>
<li><code title="">type</code>
<li><code title="">type</code> (except as specified below)
<li><code title="">valign</code>
<li><code title="">valuetype</code>
<li><code title="">vlink</code>
@@ -59226,6 +59227,10 @@ contradict people?
<p>All other attribute values on <span>HTML elements</span> must be
treated as <span>case-sensitive</span>.</p>

<p>The exception to the list above is the <code
title="attr-ol-type">type</code> attribute on <code>ol</code>
elements, which must be treated as <span>case-sensitive</span>.</p>


<h4>Pseudo-classes</h4>

@@ -96137,13 +96142,13 @@ document.body.appendChild(text);
as appropriate for elements whose 'direction' property is 'ltr', and
are expected to be flipped around on elements whose 'direction'
property is 'rtl'. These are marked "<dfn>LTR-specific</dfn>".</p>

<!--
<p id="case-sensitive-selector-exception">For the purpose of the
rules marked "case-sensitive", user agents are expected to use
case-sensitive matching of attribute values rather than
case-insensitive matching, regardless of whether a case-insensitive
matching is normally required for the given attribute.</p>

-->
<p id="case-insensitive-selector-exception">Similarly, for the
purpose of the rules marked "case-insensitive", user agents are
expected to use <span>ASCII case-insensitive</span> matching of
@@ -97003,13 +97008,13 @@ br[clear=right] { clear: right; } /* <a href="#case-insensitive-selector-excepti
br[clear=all], br[clear=both] { clear: both; } /* <a href="#case-insensitive-selector-exception">case-insensitive</a> */

ol[type=1], li[type=1] { list-style-type: decimal; }
ol[type=a], li[type=a] { list-style-type: lower-alpha; } /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */
ol[type=A], li[type=A] { list-style-type: upper-alpha; } /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */
ol[type=i], li[type=i] { list-style-type: lower-roman; } /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */
ol[type=I], li[type=I] { list-style-type: upper-roman; } /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */
ul[type=disc], li[type=disc] { list-style-type: disc; }
ul[type=circle], li[type=circle] { list-style-type: circle; }
ul[type=square], li[type=square] { list-style-type: square; }
ol[type=a], li[type=a] { list-style-type: lower-alpha; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=A], li[type=A] { list-style-type: upper-alpha; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=i], li[type=i] { list-style-type: lower-roman; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ol[type=I], li[type=I] { list-style-type: upper-roman; }<!-- /* <a href="#case-sensitive-selector-exception">case-sensitive</a> */ -->
ul[type=disc], li[type=disc] { list-style-type: disc; } /* <a href="#case-insensitive-selector-exception">case-insensitive</a> */
ul[type=circle], li[type=circle] { list-style-type: circle; } /* <a href="#case-insensitive-selector-exception">case-insensitive</a> */
ul[type=square], li[type=square] { list-style-type: square; } /* <a href="#case-insensitive-selector-exception">case-insensitive</a> */

table[rules=none], table[rules=groups], table[rules=rows],
table[rules=cols], table[rules=all] {

0 comments on commit e834620

Please sign in to comment.