<?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>1391</bug_id>
          
          <creation_ts>2005-05-12 00:53:56 +0000</creation_ts>
          <short_desc>Direct Input validation needs a &quot;parse mode&quot; option?</short_desc>
          <delta_ts>2007-04-04 04:07:21 +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.7.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Thereaux">ot</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>wjs6797</cc>
          
          <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>3392</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2005-05-12 00:53:56 +0000</bug_when>
    <thetext>Since the Direct Input validation cannot rely on mime type to get a hint of the proper parse mode to be 
applied, cases when the other methods to detect the parse mode fail (e.g unknown FPI) result in a 
fallback to SGML mode, which is not always the proper thing to do.

Perhaps an SGML/XML switch (similar in a way to what Nick is doing) would help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14025</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-02-20 07:37:54 +0000</bug_when>
    <thetext>Working on this, in the context of multiparser work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14442</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-15 04:58:45 +0000</bug_when>
    <thetext>*** Bug 2510 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14544</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-27 05:23:12 +0000</bug_when>
    <thetext>See also http://www.w3.org/Bugs/Public/show_bug.cgi?id=24#c13
for an alternative to a parse mode option in direct input, something I am still unsure is a great idea...

Quoted here:
&gt; I think in the absence of media type information, the validator should either
&gt; (1) force the user to choose one before performing validation, or (2) first
&gt; issue a warning about lack of media type information and then check if the
&gt; character stream begins with (ignoring BOM) &quot;&lt;?xml&quot;, and, if so, use XML mode,
&gt; otherwise SGML mode. In case of (2) the user should be able to change the mode
&gt; and revalidate.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14661</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-04-04 04:07:21 +0000</bug_when>
    <thetext>Still unsure about proper handling of this question, moving target to &quot;the future&quot;, to be revisited.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>