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: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 23 Jul 2007 14:59:44 -0700
Cc: Simon Pieters <simonp@opera.com>, Robert Burns <rob@robburns.com>, Jon Barnett <jonbarnett@gmail.com>, public-html <public-html@w3.org>
Message-Id: <082A3D5D-C6F7-4EB2-8A81-F1B594016392@apple.com>
To: Anne van Kesteren <annevk@opera.com>

On Jul 23, 2007, at 2:51 PM, Anne van Kesteren wrote:

> On Mon, 23 Jul 2007 23:39:31 +0200, Maciej Stachowiak  
> <mjs@apple.com> wrote:
>> [...] In the future, we'll be making all Documents support all  
>> Document interfaces including HTMLDocument and SVGDocument,  
>> regardless of content type or root element. I think HTML5 should  
>> change to require this even for XML documents (it currently  
>> requires it only for HTML documents, in the text/html sense).
> 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. Right now it only  
requires it for HTML documents:


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


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


Received on Monday, 23 July 2007 22:00:28 UTC

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