Re: HTML5 documents give critical error: Document not HTML

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 "×", 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 UTC