[whatwg] The problems with namespaces in text/html

On Nov 5, 2006, at 15:57, Elliotte Harold wrote:

> Bjoern Hoehrmann wrote:
>> * Lachlan Hunt wrote:
>>> Yes, never!  For one, a conforming HTML 5 (not XHTML 5) document  
>>> requires the DOCTYPE to be <!DOCTYPE html> and that is not well- 
>>> formed XML.
>> Yes it is.
>
> Good catch. I forgot that.

I was mistaken.

> Is there anything else that stops every HTML5 document from being a  
> well-formed XML document?

Case-insensitivity and empty elements for example.

But in any case, even if an HTML5 byte stream happens to be parseable  
as XML 1.0, you get the wrong infoset if you use an XML parser  
instead of an HTML5 parser.

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/

Received on Sunday, 5 November 2006 06:15:11 UTC