<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>58</bug_id>
          
          <creation_ts>2002-10-27 15:01:13 +0000</creation_ts>
          <short_desc>Doctype override always inserts to first line</short_desc>
          <delta_ts>2005-02-03 17:35:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.6.0b1</version>
          <rep_platform>All</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ville Skyttä">ville.skytta</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113</commentid>
    <comment_count>0</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2002-10-27 15:01:13 +0000</bug_when>
    <thetext>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&apos;ability of result pages :):

&lt;!DOCTYPE here_goes_the_overridden_doctype&gt;
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;?other stuff?&gt;
&lt;!-- &lt;!DOCTYPE here_is_the_original_doctype&gt; --&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120</commentid>
    <comment_count>1</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2002-10-30 19:36:47 +0000</bug_when>
    <thetext>Fixed. DOCTYPE is now inserted immediately before the original DOCTYPE if there
was one, and at the beginning of the file if there wasn&apos;t.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>