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

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

From: Simon Pieters <simonp@opera.com>
Date: Tue, 24 Jul 2007 00:27:58 +0200
To: "Maciej Stachowiak" <mjs@apple.com>, "Anne van Kesteren" <annevk@opera.com>
Cc: "Robert Burns" <rob@robburns.com>, "Jon Barnett" <jonbarnett@gmail.com>, public-html <public-html@w3.org>
Message-ID: <op.tvxvcwd8idj3kv@hp-a0a83fcd39d2>

On Mon, 23 Jul 2007 23:59:44 +0200, Maciej Stachowiak <mjs@apple.com>  
wrote:

>> Actually, it already requires this for all Document objects: "(This is  
>> the case whether or not the document in question is an HTML document or  
>> indeed whether it contains any HTML elements at all.)"
>
> What I meant is that HTML5 should require createElement to create  
> elements in the HTML namespace for all documents.

But should the argument be lowercased in an XML context? (I don't have an  
opinion either way. Opera and Firefox don't lowercase. WebKit now does.)

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

-- 
Simon Pieters
Opera Software
Received on Monday, 23 July 2007 22:28:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:47 UTC