[whatwg] The problems with namespaces in text/html

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. There are one or two XML parsers that blow 
this one, but they're not much used. The specific BNF production is:

doctypedecl  ::= '<!DOCTYPE' S  Name (S  ExternalID)? S? ('[' intSubset 
']' S?)? '>'

External ID and system ID are both optional.

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

-- 
?Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

Received on Sunday, 5 November 2006 05:57:08 UTC