W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: Not all attributes get lowercased in the DOM

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 22 Oct 2009 23:30:24 +0000 (UTC)
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Cc: HTMLWG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0910222329180.9145@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:09 UTC