[whatwg] [html5] r3306 - [] (0) Define interaction with CSS case-sensitivity rules.

On Tue, 23 Jun 2009 08:23:01 +0200, <whatwg at whatwg.org> wrote:

> Author: ianh
> Date: 2009-06-22 23:22:58 -0700 (Mon, 22 Jun 2009)
> New Revision: 3306
>
> Modified:
>    index
>    source
> Log:
> [] (0) Define interaction with CSS case-sensitivity rules.


> Modified: source
> ===================================================================
> --- source	2009-06-23 01:58:14 UTC (rev 3305)
> +++ source	2009-06-23 06:22:58 UTC (rev 3306)
> @@ -81995,14 +81995,6 @@
>   <h3>Interaction with CSS</h3>
> -  <!-- XXX this should be normative, so we'll have to move it out of
> -  this section -->
> -
> -  <p class="XXX">Must define that in CSS, tag and attribute
> -  names in HTML documents, and class names in quirks mode documents,
> -  are case-insensitive, as well as saying which attribute values must
> -  be compared case-insensitively.</p>
> -
>    <!-- XXX
>     Extensions to CSS
> @@ -82014,7 +82006,77 @@
>   </div>
> +  <h4>Selectors</h4>
> +  <p>Attribute and element <em>names</em> of <span>HTML
> +  elements</span> in <span>HTML documents</span> must be treated as
> +  case-insensitive.</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 case-insensitive.</p>

This is the case for SVG classes, too, but maybe it's up to the SVG spec  
to define that.


> +  <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 case-insensitive:</p>

Why are values case-insensitive only in HTML documents? The values are  
case-insensitive in XHTML, too.


> +  <!-- 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>

Add a class to make the list more compact.


> +   <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>
> +   <li><code title="">valign</code>
> +   <li><code title="">valuetype</code>
> +   <li><code title="">vlink</code>
> +  </ul>

This list is missing charset and ismap, and presumably the new attributes  
in HTML5:

xml:lang (in no namespace) seems to be case-insensitive (although we might  
want to skip this one).

scoped
async
reversed
seamless
autobuffer
autoplay
loop
controls
autocomplete
novalidate
autofocus
formenctype
formmethod
formnovalidate
formtarget
required
wrap
keytype
open
hidden
contenteditable
draggable

...and maybe from the obsolete elements section:

behavior
direction
truespeed


-- 
Simon Pieters
Opera Software

Received on Tuesday, 23 June 2009 09:16:35 UTC