[whatwg] The problems with namespaces in text/html
Henri Sivonen
hsivonen at iki.fi
Sun Nov 5 06:15:11 PST 2006
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/
More information about the whatwg
mailing list