Re: Not all attributes get lowercased in the DOM

On Mon, 19 Oct 2009, Leif Halvard Silli wrote:
>
> The note in section 3.2.3.8 goes to far:
> 
> ]]
> 3.2.3.8 Embedding custom non-visible data
> A custom data attribute is an attribute in no namespace whose name starts with
> the string "data-", has at least  one character after the hyphen, is
> XML-compatible, and contains no characters in the range U+0041 .. U+005A
> (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).
> 
> Note: All attributes in HTML documents get lowercased automatically, so the
> restriction on
> uppercase letters doesn't affect such documents.
> [[
> 
> The correct thing AFAIK is that *only* ASCII names get lowercased in the 
> DOM. Non-ASCII attribute names stay as they are.

I've made the note more precise.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 22 October 2009 23:17:40 UTC