<?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>454</bug_id>
          
          <creation_ts>2004-01-03 05:53:10 +0000</creation_ts>
          <short_desc>Fallback/malformed doctype declaration for XHTML gives confusing results</short_desc>
          <delta_ts>2004-05-17 20:45:15 +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.5b1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>705</dup_id>
          
          <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>1080</commentid>
    <comment_count>0</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-01-03 05:53:10 +0000</bug_when>
    <thetext>Kind of two related bugs here, both seen when trying to validate a XHTML
document sent as text/html with has a buggy doctype declaration, eg. &quot;!doctype&quot;
in lowercase.

First, the fallback in sgml.soc:

  DOCTYPE html REC-html401-19991224/loose.dtd

This causes confusion because there is nothing in the output that would indicate
that a doctype wasn&apos;t found and that such a fallback is being used.  Something
should be done to this, maybe removed altogether if a better alternative is not
found.

Second, if the above fallback is removed, validator still doesn&apos;t recognize the
doctype (due to lowercase doctype declaration and HTML::Parser&apos;s xml_mode) but
goes on to validate using sgml.soc and SGML rules (so onsgmls will retrieve the
online XHTML DTD but will not emit a AVERSION...), and says &quot;This document is
not Valid !&quot; but does not mention that it did not properly recognize the
document type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1859</commentid>
    <comment_count>1</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2004-05-17 16:45:15 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 705 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>