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 58 - Doctype override always inserts to first line
Summary: Doctype override always inserts to first line
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.0b1
Hardware: All other
: P2 minor
Target Milestone: ---
Assignee: Terje Bless
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-27 15:01 UTC by Ville Skyttä
Modified: 2005-02-03 17:35 UTC (History)
0 users

See Also:


Attachments

Description Ville Skyttä 2002-10-27 15:01:13 UTC
Doctype override seems to always insert the new doctype declaration as the first
line of the document.  This causes bad results if the document had eg. an XML
declaration.  The document becomes something like (sample URL pending for beta
update, ie. the GET'ability of result pages :):

<!DOCTYPE here_goes_the_overridden_doctype>
<?xml version="1.0"?>
<?other stuff?>
<!-- <!DOCTYPE here_is_the_original_doctype> -->
Comment 1 Terje Bless 2002-10-30 19:36:47 UTC
Fixed. DOCTYPE is now inserted immediately before the original DOCTYPE if there
was one, and at the beginning of the file if there wasn't.