[Bug 1500] New: XHTML-sent-as-text/html is parsed as XML

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

           Summary: XHTML-sent-as-text/html is parsed as XML
           Product: Validator
           Version: 0.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: ian@hixie.ch
         QAContact: www-validator-cvs@w3.org


According to the HTML WG, a UA is non-compliant if it handles an XHTML document
sent as text/html as XHTML; such a UA must apparently handle the document as
HTML regardless of what it looks like.

# [...] documents served as text/html should be treated
# as HTML and not as XHTML.
 -- http://lists.w3.org/Archives/Public/www-html/2000Sep/0024.html

The fact that the validator ignores this means that documents that don't comply
to appendix C of XHTML 1.0 are being marked as valid when in fact they aren't
conformant and won't be handled correctly.

This is causing people to file bugs on browsers (I've seen it happen to Opera,
Safari, and Mozilla) which are invalid. The browsers are doing the right thing,
but the documents are wrong. Yet the validator is telling them that the
documents are fine.

I would like to see the validator reject any XHTML-sent-as-text/html as being of
the wrong MIME type.

Received on Wednesday, 15 June 2005 11:32:16 UTC