Re: Validating XHTML5 with XML entities

On Tue, 26 Aug 2008, Jeff Schiller wrote:
> 
> The spec states that XHTML5 documents do not require a DOCTYPE [1].
> 
> A DOCTYPE must consist of "<!DOCTYPE HTML>" (case-insensitive) [2]
> [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#the-doctype

The second requirement only applies to the text/html serialisation. There 
is no constraint on what XML-level syntax (like the DOCTYPE in XML 
serialisations of HTML5 documents) can be or do beyond what the XML 
specification requires.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 26 August 2008 22:15:35 UTC