W3C home > Mailing lists > Public > public-html@w3.org > August 2007

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

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 2 Aug 2007 00:21:17 +0000 (UTC)
To: Maciej Stachowiak <mjs@apple.com>
Cc: public-html <public-html@w3.org>
Message-ID: <Pine.LNX.4.64.0708020020120.9342@dhalsim.dreamhost.com>

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

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:25 UTC