<?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>25</bug_id>
          
          <creation_ts>2002-10-25 19:45:24 +0000</creation_ts>
          <short_desc>preparse() called twice per request</short_desc>
          <delta_ts>2002-10-27 15:13:38 +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>Parser</component>
          <version>0.6.0b1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</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>43</commentid>
    <comment_count>0</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2002-10-25 19:45:24 +0000</bug_when>
    <thetext>It looks like preparse() is being called twice per request; first with the
commentary &quot;Try to extract META charset&quot; and second with &quot;Try to extract a
DOCTYPE or xmlns.&quot;.

Maybe the latter should just be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84</commentid>
    <comment_count>1</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2002-10-27 10:13:38 +0000</bug_when>
    <thetext>Two things happen between the two calls to &amp;preparse:

  1) The document is converted into UTF-8.
  2) The DOCTYPE is replaced (if override is in effect).

The second call to &amp;preparse may succeede where the first failed if the document
was originally in a non-&quot;asciipatible&quot; encoding and it needs to be done after
the new DOCTYPE is inserted to pick up the new DOCTYPE (cf. Bug #47).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>