W3C home > Mailing lists > Public > public-html@w3.org > December 2008

Re: Case folding (lack thereof) in the doctype name state

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 2 Dec 2008 02:46:18 +0000 (UTC)
To: Henri Sivonen <hsivonen@iki.fi>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0812020245550.17414@hixie.dreamhostps.com>

On Wed, 15 Oct 2008, Henri Sivonen wrote:
> Is there a reason why the doctype name isn't case-folded in the 
> tokenizer like element and attribute names?
> Of the APIs I've tried to map HTML5 to, so far both APIs that 
> distinguish between interned and non-interned strings (Java SAX and 
> Gecko internal APIs) treat the doctype name as an interned string. Doing 
> a case-insensitive compare of interned strings in the tree builders goes 
> against the point of having interned strings for names. It's doable of 
> course, but the exceptional treatment of this particular name is weird 
> (and for a portable parser, requires yet another one-off comparison 
> method in the portability layer).


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 2 December 2008 02:46:53 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:40 UTC