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 48 - "Override" to same DOCTYPE should not give a warning.
Summary: "Override" to same DOCTYPE should not give a warning.
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.0
Hardware: All other
: P3 minor
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL: http://validator.w3.org/check?uri=htt...
Whiteboard:
Keywords:
Depends on: 43
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-27 09:12 UTC by Terje Bless
Modified: 2005-05-11 09:02 UTC (History)
0 users

See Also:


Attachments

Description Terje Bless 2002-10-27 09:12:21 UTC
Reported by Björn Höhrmann <derhoermi@gmx.net>:

I tried to validate http://www.websitedev.de/xhtml/xhtml1/ as ISO-8859-1
encoded XHTML 1.0 Transitional document. The validator responds

  * DOCTYPE Override in effect! Any DOCTYPE Declaration in the document
    has been suppressed and the DOCTYPE for «XHTML 1.0 Transitional»
    inserted instead. The document will not be Valid until you alter the
    source file to reflect this new DOCTYPE. 

  The document located at <URL:http://www.websitedev.de/xhtml/xhtml1/>
  would validate as XHTML 1.0 Strict if you updated it to match the
  Options used.

I don't need to update the page, it validates.
If selected document type and the document type
given in the document match, the validator should
not shout at me.
Comment 1 Terje Bless 2002-10-27 10:27:00 UTC
This can't be done with the current code; we never have the DOCTYPE from the
override ad the DOCTYPE found in the document in the same format (FPI vs.
Version string vs. a complete DOCTYPE) and neither do we have a mapping table to
deal with this.

OTOH, sufficient metadata/mapping tables for this is one of the things scheduled
for the new config file parser/format. Setting blocker on Bug #43.
Comment 2 Terje Bless 2002-10-27 10:29:38 UTC
Setting target to 0.7.0.
Comment 3 Terje Bless 2002-12-03 01:58:03 UTC
Remove blocker on Bug #4 and adding Bjoern to the CC list.
Comment 4 Terje Bless 2004-10-12 19:19:00 UTC
Won't make it for 0.7.0.
Comment 5 Olivier Thereaux 2005-03-24 09:03:31 UTC
(In reply to comment #4)
> Won't make it for 0.7.0.

Actually I think we had all the logic ready, albeit scattered in the code.
Fixed in CVS.
Comment 6 Olivier Thereaux 2005-05-11 09:02:55 UTC
adding test case URI