W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] Lowercase attribute values

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 5 Jun 2007 23:25:57 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.0706052323380.9191@dhalsim.dreamhost.com>
On Sun, 28 Aug 2005, Henri Sivonen wrote:
>
> In XHTML there are attributes whose value must be in lowercase, although 
> in HTML the value is case-insensitive. The most common example is the 
> method attribute of the form element. But should rev and rel be 
> lowercased?
> 
> A piece of software that maps from the HTML flavor of HTML5 to the XHTML 
> flavor and needs to decide which attribute values to lowercase. How 
> should the decision be done? Based solely on the attribute name? (In 
> which case 'type' would be interesting.) Based on both the element name 
> and the attribute name? What is the recommended method for the author of 
> such a piece of software for extracting the list of special cases from 
> the spec?

There are no more differences between XHTML and HTML now as far as this 
goes, as far as I know. Please let me know if I missed one.


> How should the lowercasing be performed? Using the locale-insensitive 
> Unicode case data or for ASCII only treating non-ASCII as an error?

So long as you don't do it in the Turkish locale, it should be fine. I 
haven't really made the spec very clear on this yet, but there's a red box 
about it; it'll be dealt with in due course.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 5 June 2007 16:25:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC