[html5] r8253 - [giow] (3) Match reality better in terms of selector case-sensitivity Fixing htt [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 6 11:38:53 PST 2013


Author: ianh
Date: 2013-11-06 11:38:50 -0800 (Wed, 06 Nov 2013)
New Revision: 8253

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Match reality better in terms of selector case-sensitivity
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23742
Affected topics: CSS, HTML

Modified: complete.html
===================================================================
--- complete.html	2013-11-06 18:12:51 UTC (rev 8252)
+++ complete.html	2013-11-06 19:38:50 UTC (rev 8253)
@@ -59296,10 +59296,17 @@
   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>Attribute and element <em>names</em> of <a href=#html-elements>HTML elements</a> in <a href=#html-documents>HTML
+<!--CLEANUP-->
+  <p>Attribute <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>
 
+  <p>When comparing a CSS element type selector to the names of <a href=#html-elements>HTML elements</a> in
+  <a href=#html-documents>HTML documents</a>, the CSS element type selector must first be <a href=#converted-to-ascii-lowercase>converted to ASCII
+  lowercase</a>. The same selector when compared to other elements must be compared according to
+  its original case. In both cases, the comparison is <a href=#case-sensitive>case-sensitive</a>.</p>
+  <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 -->
+
   <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

Modified: index
===================================================================
--- index	2013-11-06 18:12:51 UTC (rev 8252)
+++ index	2013-11-06 19:38:50 UTC (rev 8253)
@@ -59296,10 +59296,17 @@
   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>Attribute and element <em>names</em> of <a href=#html-elements>HTML elements</a> in <a href=#html-documents>HTML
+<!--CLEANUP-->
+  <p>Attribute <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>
 
+  <p>When comparing a CSS element type selector to the names of <a href=#html-elements>HTML elements</a> in
+  <a href=#html-documents>HTML documents</a>, the CSS element type selector must first be <a href=#converted-to-ascii-lowercase>converted to ASCII
+  lowercase</a>. The same selector when compared to other elements must be compared according to
+  its original case. In both cases, the comparison is <a href=#case-sensitive>case-sensitive</a>.</p>
+  <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 -->
+
   <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

Modified: source
===================================================================
--- source	2013-11-06 18:12:51 UTC (rev 8252)
+++ source	2013-11-06 19:38:50 UTC (rev 8253)
@@ -65760,10 +65760,17 @@
   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>Attribute and element <em>names</em> of <span>HTML elements</span> in <span>HTML
+<!--CLEANUP-->
+  <p>Attribute <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>
 
+  <p>When comparing a CSS element type selector to the names of <span>HTML elements</span> in
+  <span>HTML documents</span>, the CSS element type selector must first be <span>converted to ASCII
+  lowercase</span>. The same selector when compared to other elements must be compared according to
+  its original case. In both cases, the comparison is <span>case-sensitive</span>.</p>
+  <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 -->
+
   <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




More information about the Commit-Watchers mailing list