[Bug 6301] Check as XHTML5 for doctypeless XHTML

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6301





--- Comment #6 from Simon Pieters <simonp@opera.com>  2009-01-05 14:50:45 ---
(In reply to comment #5)
> I've just noticed that the HEAD version is validating doctypeless text/html
> pages as valid HTML5 [1][2],

It says it does but if you try out new elements or something invalid you'll see
that it really doesn't.


> (these pages should be treated the same as
> doctypeless XHTML pages were treated prior to (X)HTML5).

(Why?)


> It is *only* pages
> served as application/xhtml+xml or application/xml that can omit the doctype.
> For a page to be valid HTML5 or XHTML5 it must either have a doctype like:
> "<!DOCTYPE html>" or have no doctype at all and be served as
> application/xhtml+xml or application/xml (I'm waiting to here back from Henri
> regarding how we should deal with doctypeless text/xml as it's not a valid
> XHTML5 mime type).

No, XHTML5 may have any XML MIME type and any (or no) doctype.

http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#authors-using-xhtml


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 5 January 2009 14:50:54 UTC