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 47 - Output refers to "Strict" for a "Transitional" file.
Summary: Output refers to "Strict" for a "Transitional" file.
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.0b2
Hardware: Other other
: P1 major
Target Milestone: ---
Assignee: Terje Bless
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 4
  Show dependency treegraph
 
Reported: 2002-10-27 09:10 UTC by Terje Bless
Modified: 2013-03-26 10:11 UTC (History)
1 user (show)

See Also:


Attachments

Description Terje Bless 2002-10-27 09:10:47 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.

Yes, the page would validate es XHTML 1.0 Strict, but who
cares about that? It has a XHTML 1.0 Transitional document type
declaration and I selected "override" to XHTML 1.0 Transitional [...].
Comment 1 Terje Bless 2002-10-27 09:41:22 UTC
Correction: The file has a _Strict_ doctype, not a Transitional one, but the
output should still refer to the Transitional DTD as that's what we actually
tried to Validate against.
Comment 2 Terje Bless 2002-10-27 10:09:23 UTC
&preparse was being too clever for it's own good and bailing out early if it had
already seen a DOCTYPE. Since we call &preparse both before and after
&supress_doctype, the new DOCTYPE was never seen by &preparse.

&preparse now resets DOCTYPE, Root element, and Charset before it starts parsing
the document.