W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > June 2010

Re: HTML5 documents give critical error: Document not HTML

From: Francois Daoust <fd@w3.org>
Date: Fri, 04 Jun 2010 15:10:39 +0200
Message-ID: <4C08FB4F.7080505@w3.org>
To: Dave Smith <da__smith@hotmail.com>
CC: public-mobileok-checker@w3.org
Hi Dave,

On 06/03/2010 10:59 PM, Dave Smith wrote:
 > Dear mobileOK Checker List
 >
 > http://www.dave-smith.info/zx-css-layout/1.5.1/ is a valid HTML 5
 > document but the checker says it is not HTML.

Yes, you're right.
The document type declaration bugs the mobileOK Checker, which then 
entirely fails to report something meaningful.

The problem seems to occur when the document cannot be parsed directly 
as XML and needs to be parsed as HTML (in your case, parsing as HTML is 
required because you use the entity "&times;", which is entirely 
correct, but since the XML parser doesn't know anything about HTML and 
since there's no more reference to a real DTD in HTML5, it doesn't know 
how to parse it)

I've created bug 9850 to track this:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9850



 >
 > Disclaimer (excuses, excuses): Please forgive the linked page above and
 > site in general, it rarely gets much TLC. Also, has anyone else cringed
 > or worse when re-reading a post they'd written some time before :|

That's exactly how I feel when I have to take a look at code written 
some time before because of a bug like the one above ;)


Thanks for the report!
Francois.


 >
 > all the best
 > Dave
 >
 > p.s. I searched the archive first before sending and there were no
 > results for HTML5.
 >
 >
 >
Received on Friday, 4 June 2010 13:11:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 4 June 2010 13:11:10 GMT