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

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).

Changed.

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