[html5] r6695 - [giow] (2) Update selector case-sensitivity matching rules, including dropping t [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 18 16:00:18 PDT 2011


Author: ianh
Date: 2011-10-18 16:00:16 -0700 (Tue, 18 Oct 2011)
New Revision: 6695

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Update selector case-sensitivity matching rules, including dropping the list of magically case-insensitive values.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13757

Modified: complete.html
===================================================================
--- complete.html	2011-10-18 22:36:40 UTC (rev 6694)
+++ complete.html	2011-10-18 23:00:16 UTC (rev 6695)
@@ -56777,82 +56777,40 @@
 
 
 
+
   <div class=impl>
 
   <h3 id=matching-html-elements-using-selectors><span class=secno>4.14 </span>Matching HTML elements using selectors</h3>
 
   <h4 id=selectors><span class=secno>4.14.1 </span>Case-sensitivity</h4>
 
-  <p>Attribute and element <em>names</em> of <a href=#html-elements>HTML
-  elements</a> in <a href=#html-documents>HTML documents</a> must be treated as
-  <a href=#ascii-case-insensitive>ASCII case-insensitive</a>.</p>
+  <p>The Selectors specification leaves the case-sensitivity of IDs,
+  classes, element names, attribute names, and attribute values to be
+  defined by the host language. <a href=#refsSELECTORS>[SELECTORS]</a></p>
 
+  <p>The <a href=#concept-id title=concept-id>unique identifier</a> of
+  <a href=#html-elements>HTML elements</a> in documents that are in <a href=#quirks-mode>quirks
+  mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+  for the purposes of selector matching.</p>
+
   <p>Classes from the <code title=attr-class><a href=#classes>class</a></code> attribute
   of <a href=#html-elements>HTML elements</a> in documents that are in <a href=#quirks-mode>quirks
-  mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII
-  case-insensitive</a>.</p>
+  mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+  for the purposes of selector matching.</p>
 
-  <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>, with one
-  exception as noted below:</p>
+  <p>Attribute and element <em>names</em> of <a href=#html-elements>HTML
+  elements</a> in <a href=#html-documents>HTML documents</a> must be treated as
+  <a href=#ascii-case-insensitive>ASCII case-insensitive</a> for the purposes of selector
+  matching.</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 -->
-  <ul class=brief><li><code title="">accept</code>
-   <li><code title="">accept-charset</code>
-   <li><code title="">align</code>
-   <li><code title="">alink</code>
-   <li><code title="">axis</code>
-   <li><code title="">bgcolor</code>
-   <li><code title="">charset</code>
-   <li><code title="">checked</code>
-   <li><code title="">clear</code>
-   <li><code title="">codetype</code>
-   <li><code title="">color</code>
-   <li><code title="">compact</code>
-   <li><code title="">declare</code>
-   <li><code title="">defer</code>
-   <li><code title="">dir</code>
-   <li><code title="">direction</code> <!-- not in webkit -->
-   <li><code title="">disabled</code>
-   <li><code title="">enctype</code>
-   <li><code title="">face</code>
-   <li><code title="">frame</code>
-   <li><code title="">hreflang</code>
-   <li><code title="">http-equiv</code>
-   <li><code title="">lang</code>
-   <li><code title="">language</code>
-   <li><code title="">link</code>
-   <li><code title="">media</code>
-   <li><code title="">method</code>
-   <li><code title="">multiple</code>
-   <li><code title="">nohref</code>
-   <li><code title="">noresize</code>
-   <li><code title="">noshade</code>
-   <li><code title="">nowrap</code>
-   <li><code title="">readonly</code>
-   <li><code title="">rel</code>
-   <li><code title="">rev</code>
-   <li><code title="">rules</code>
-   <li><code title="">scope</code>
-   <li><code title="">scrolling</code>
-   <li><code title="">selected</code>
-   <li><code title="">shape</code>
-   <li><code title="">target</code>
-   <li><code title="">text</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>Everything else (attribute values on <a href=#html-elements>HTML elements</a>,
+  IDs and classes in <a href=#no-quirks-mode>no-quirks mode</a> and
+  <a href=#limited-quirks-mode>limited-quirks mode</a>, and element names, attribute
+  names, and attribute values in <a href=#xml-documents>XML documents</a>) must be
+  treated as <a href=#case-sensitive>case-sensitive</a> for the purposes of selector
+  matching.</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>
 
   <p>There are a number of dynamic selectors that can be used with

Modified: index
===================================================================
--- index	2011-10-18 22:36:40 UTC (rev 6694)
+++ index	2011-10-18 23:00:16 UTC (rev 6695)
@@ -56777,82 +56777,40 @@
 
 
 
+
   <div class=impl>
 
   <h3 id=matching-html-elements-using-selectors><span class=secno>4.14 </span>Matching HTML elements using selectors</h3>
 
   <h4 id=selectors><span class=secno>4.14.1 </span>Case-sensitivity</h4>
 
-  <p>Attribute and element <em>names</em> of <a href=#html-elements>HTML
-  elements</a> in <a href=#html-documents>HTML documents</a> must be treated as
-  <a href=#ascii-case-insensitive>ASCII case-insensitive</a>.</p>
+  <p>The Selectors specification leaves the case-sensitivity of IDs,
+  classes, element names, attribute names, and attribute values to be
+  defined by the host language. <a href=#refsSELECTORS>[SELECTORS]</a></p>
 
+  <p>The <a href=#concept-id title=concept-id>unique identifier</a> of
+  <a href=#html-elements>HTML elements</a> in documents that are in <a href=#quirks-mode>quirks
+  mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+  for the purposes of selector matching.</p>
+
   <p>Classes from the <code title=attr-class><a href=#classes>class</a></code> attribute
   of <a href=#html-elements>HTML elements</a> in documents that are in <a href=#quirks-mode>quirks
-  mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII
-  case-insensitive</a>.</p>
+  mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+  for the purposes of selector matching.</p>
 
-  <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>, with one
-  exception as noted below:</p>
+  <p>Attribute and element <em>names</em> of <a href=#html-elements>HTML
+  elements</a> in <a href=#html-documents>HTML documents</a> must be treated as
+  <a href=#ascii-case-insensitive>ASCII case-insensitive</a> for the purposes of selector
+  matching.</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 -->
-  <ul class=brief><li><code title="">accept</code>
-   <li><code title="">accept-charset</code>
-   <li><code title="">align</code>
-   <li><code title="">alink</code>
-   <li><code title="">axis</code>
-   <li><code title="">bgcolor</code>
-   <li><code title="">charset</code>
-   <li><code title="">checked</code>
-   <li><code title="">clear</code>
-   <li><code title="">codetype</code>
-   <li><code title="">color</code>
-   <li><code title="">compact</code>
-   <li><code title="">declare</code>
-   <li><code title="">defer</code>
-   <li><code title="">dir</code>
-   <li><code title="">direction</code> <!-- not in webkit -->
-   <li><code title="">disabled</code>
-   <li><code title="">enctype</code>
-   <li><code title="">face</code>
-   <li><code title="">frame</code>
-   <li><code title="">hreflang</code>
-   <li><code title="">http-equiv</code>
-   <li><code title="">lang</code>
-   <li><code title="">language</code>
-   <li><code title="">link</code>
-   <li><code title="">media</code>
-   <li><code title="">method</code>
-   <li><code title="">multiple</code>
-   <li><code title="">nohref</code>
-   <li><code title="">noresize</code>
-   <li><code title="">noshade</code>
-   <li><code title="">nowrap</code>
-   <li><code title="">readonly</code>
-   <li><code title="">rel</code>
-   <li><code title="">rev</code>
-   <li><code title="">rules</code>
-   <li><code title="">scope</code>
-   <li><code title="">scrolling</code>
-   <li><code title="">selected</code>
-   <li><code title="">shape</code>
-   <li><code title="">target</code>
-   <li><code title="">text</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>Everything else (attribute values on <a href=#html-elements>HTML elements</a>,
+  IDs and classes in <a href=#no-quirks-mode>no-quirks mode</a> and
+  <a href=#limited-quirks-mode>limited-quirks mode</a>, and element names, attribute
+  names, and attribute values in <a href=#xml-documents>XML documents</a>) must be
+  treated as <a href=#case-sensitive>case-sensitive</a> for the purposes of selector
+  matching.</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>
 
   <p>There are a number of dynamic selectors that can be used with

Modified: source
===================================================================
--- source	2011-10-18 22:36:40 UTC (rev 6694)
+++ source	2011-10-18 23:00:16 UTC (rev 6695)
@@ -63972,86 +63972,41 @@
 
 
 
+
   <div class="impl">
 
   <h3>Matching HTML elements using selectors</h3>
 
   <h4 id="selectors">Case-sensitivity</h4>
 
-  <p>Attribute and element <em>names</em> of <span>HTML
-  elements</span> in <span>HTML documents</span> must be treated as
-  <span>ASCII case-insensitive</span>.</p>
+  <p>The Selectors specification leaves the case-sensitivity of IDs,
+  classes, element names, attribute names, and attribute values to be
+  defined by the host language. <a
+  href="#refsSELECTORS">[SELECTORS]</a></p>
 
+  <p>The <span title="concept-id">unique identifier</span> of
+  <span>HTML elements</span> in documents that are in <span>quirks
+  mode</span> must be treated as <span>ASCII case-insensitive</span>
+  for the purposes of selector matching.</p>
+
   <p>Classes from the <code title="attr-class">class</code> attribute
   of <span>HTML elements</span> in documents that are in <span>quirks
-  mode</span> must be treated as <span>ASCII
-  case-insensitive</span>.</p>
+  mode</span> must be treated as <span>ASCII case-insensitive</span>
+  for the purposes of selector matching.</p>
 
-  <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>, with one
-  exception as noted below:</p>
+  <p>Attribute and element <em>names</em> of <span>HTML
+  elements</span> in <span>HTML documents</span> must be treated as
+  <span>ASCII case-insensitive</span> for the purposes of selector
+  matching.</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 -->
-  <ul class="brief">
-   <li><code title="">accept</code>
-   <li><code title="">accept-charset</code>
-   <li><code title="">align</code>
-   <li><code title="">alink</code>
-   <li><code title="">axis</code>
-   <li><code title="">bgcolor</code>
-   <li><code title="">charset</code>
-   <li><code title="">checked</code>
-   <li><code title="">clear</code>
-   <li><code title="">codetype</code>
-   <li><code title="">color</code>
-   <li><code title="">compact</code>
-   <li><code title="">declare</code>
-   <li><code title="">defer</code>
-   <li><code title="">dir</code>
-   <li><code title="">direction</code> <!-- not in webkit -->
-   <li><code title="">disabled</code>
-   <li><code title="">enctype</code>
-   <li><code title="">face</code>
-   <li><code title="">frame</code>
-   <li><code title="">hreflang</code>
-   <li><code title="">http-equiv</code>
-   <li><code title="">lang</code>
-   <li><code title="">language</code>
-   <li><code title="">link</code>
-   <li><code title="">media</code>
-   <li><code title="">method</code>
-   <li><code title="">multiple</code>
-   <li><code title="">nohref</code>
-   <li><code title="">noresize</code>
-   <li><code title="">noshade</code>
-   <li><code title="">nowrap</code>
-   <li><code title="">readonly</code>
-   <li><code title="">rel</code>
-   <li><code title="">rev</code>
-   <li><code title="">rules</code>
-   <li><code title="">scope</code>
-   <li><code title="">scrolling</code>
-   <li><code title="">selected</code>
-   <li><code title="">shape</code>
-   <li><code title="">target</code>
-   <li><code title="">text</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>Everything else (attribute values on <span>HTML elements</span>,
+  IDs and classes in <span>no-quirks mode</span> and
+  <span>limited-quirks mode</span>, and element names, attribute
+  names, and attribute values in <span>XML documents</span>) must be
+  treated as <span>case-sensitive</span> for the purposes of selector
+  matching.</p>
 
-  <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>
 
   <p>There are a number of dynamic selectors that can be used with




More information about the Commit-Watchers mailing list