W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] several messages about XML syntax and HTML5

From: Michel Fortin <michel.fortin@michelf.com>
Date: Mon, 4 Dec 2006 11:10:18 -0500
Message-ID: <A1A8B5B0-61DA-49FD-8022-6BC638A3E0FE@michelf.com>
Le 4 d?c. 2006 ? 6:10, Mihai Sucan a ?crit :

> However, in the same "spirit", a middle way for those who want  
> XMLiness in HTML, would be to allow the xmlns:?.* attribute,  
> xml:base, xml:id, and xml:lang. Yet, define them as meaningless.  
> Just for validation purposes, just for helping people who do such  
> things on the server-side.

I disagree. I think xmlns="http://www.w3.org/1999/html" is fine in  
HTML because it just states what is already implied. But I think  
allowing attributes with no meaning to validate will just reenforce  
the idea that they are meaningful. If you use them, fine, but you'll  
have a validation error there that will warn you that this is no HTML.

I know I suggested xml:lang before, but that was when I thought it  
was parsed in HTML. Now I think a more clever approach would be to  
allow html:lang to validate in XHTML, because XHTML already mandates  
that html:lang be taken into account when determining the language.

As for xml:id, why not use "id" purely and simply? It works with both  
HTML and XHTML anyway.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/
Received on Monday, 4 December 2006 08:10:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC