[Bug 6301] Check as XHTML5 for doctypeless XHTML

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





--- Comment #5 from Dean Edridge <dean@dean.org.nz>  2009-01-05 14:40:05 ---
(In reply to comment #4)
> This seems to be working now on HEAD, although it still whines about lack of
> doctype and claims to be going to validate as XHTML 1.0 Transitional.
> 

I've just noticed that the HEAD version is validating doctypeless text/html
pages as valid HTML5 [1][2], (these pages should be treated the same as
doctypeless XHTML pages were treated prior to (X)HTML5). 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).

[1] http://dean.org.nz/temp/no-doctype/ (text/html)
[2]
http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F%2Fdean.org.nz%2Ftemp%2Fno-doctype%2F&charset=(detect+automatically)&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.630



-- 
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:40:20 UTC