Re: Why HTML should be taught as HTML without pretending it is XML

On Mon, 23 Jul 2007, Maciej Stachowiak wrote:
> 
> What I meant is that HTML5 should require createElement to create 
> elements in the HTML namespace for all documents. Right now it only 
> requires it for HTML documents:
> 
> http://www.whatwg.org/specs/web-apps/current-work/#apis-in
> 
> "For HTML documents, and for HTML elements in HTML documents, certain 
> APIs defined in DOM3 Core become case-insensitive or case-changing, as 
> sometimes defined in DOM3 Core, and as summarised or required below. 
> [DOM3CORE].
> 
> This does not apply to XML documents or to elements that are not in the 
> HTML namespace despite being inHTML documents.
> 
> ....
> 
> Document.createElement()
> The canonical form of HTML markup is all-lowercase; thus, this method will
> lowercase the argument before creating the requisite element. Also, the
> element created must be in the HTML namespace."

I agree, but I couldn't see a way to do this without overstepping the 
specification's scope. It seems like this change would have to happen in 
DOM3 Core. I have noted this as something to look at further, though.

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

Received on Thursday, 2 August 2007 00:21:29 UTC