This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 454 - Fallback/malformed doctype declaration for XHTML gives confusing results
Summary: Fallback/malformed doctype declaration for XHTML gives confusing results
Status: RESOLVED DUPLICATE of bug 705
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.5b1
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-03 05:53 UTC by Ville Skyttä
Modified: 2004-05-17 20:45 UTC (History)
0 users

See Also:


Attachments

Description Ville Skyttä 2004-01-03 05:53:10 UTC
Kind of two related bugs here, both seen when trying to validate a XHTML
document sent as text/html with has a buggy doctype declaration, eg. "!doctype"
in lowercase.

First, the fallback in sgml.soc:

  DOCTYPE html REC-html401-19991224/loose.dtd

This causes confusion because there is nothing in the output that would indicate
that a doctype wasn't found and that such a fallback is being used.  Something
should be done to this, maybe removed altogether if a better alternative is not
found.

Second, if the above fallback is removed, validator still doesn't recognize the
doctype (due to lowercase doctype declaration and HTML::Parser's xml_mode) but
goes on to validate using sgml.soc and SGML rules (so onsgmls will retrieve the
online XHTML DTD but will not emit a AVERSION...), and says "This document is
not Valid !" but does not mention that it did not properly recognize the
document type.
Comment 1 Terje Bless 2004-05-17 16:45:15 UTC

*** This bug has been marked as a duplicate of 705 ***