<?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>861</bug_id>
          
          <creation_ts>2004-09-02 21:07:12 +0000</creation_ts>
          <short_desc>&amp;is_xml() and $File-&gt;{Type} use deprecated conf/type.cfg</short_desc>
          <delta_ts>2005-02-04 18:43:26 +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>Types Registry</component>
          <version>0.7.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>blocker</bug_severity>
          <target_milestone>0.7.0</target_milestone>
          
          <blocked>856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Terje Bless">link</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2225</commentid>
    <comment_count>0</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2004-09-02 21:07:12 +0000</bug_when>
    <thetext>The &amp;is_foo() (e.g. &amp;is_xml()) functions, and the $File-&gt;{Type} attribute, make
use of the data (and accompanying logic) from the deprecated conf/type.cfg.

This should be ripped out and replaced with something making use of the new
Types Registry, but it needs to be done carefully since this logic is hairy
and determines XML vs. SGML mode using heuristics and DWIMery.

It&apos;s likely the Type Registry needs to be unraveled to provide a Content-Type
 -&gt; Parse Mode (XML vs. SGML) mapping, or to compute it on the fly. Possibly
this wants a third &quot;UNDETERMINED&quot; state for ambigious cases like &quot;text/html&quot;
where we may be parsing XHTML or MathML (which need XML mode and not SGML
mode as the Content-Type alone would indicate).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4216</commentid>
    <comment_count>1</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2005-02-04 18:43:26 +0000</bug_when>
    <thetext>New code just landed. --&gt; Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>