<?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>980</bug_id>
          
          <creation_ts>2005-01-04 10:39:54 +0000</creation_ts>
          <short_desc>This Page Is Valid -//W3C//DTD XHTML 1.1 Strict//EN! even if it&apos;s not valid XHTML 1.1</short_desc>
          <delta_ts>2005-02-04 19:06:09 +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.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://validator.w3.org/check</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="Bohdan Cech">shake</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          <cc>ian</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>2772</commentid>
    <comment_count>0</comment_count>
    <who name="Bohdan Cech">shake</who>
    <bug_when>2005-01-04 10:39:54 +0000</bug_when>
    <thetext>If the page have this doctype declaration:
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;

validator says:
This Page Is Valid -//W3C//DTD XHTML 1.1 Strict//EN!

even if it is not valid XHTML 1.1, The page wasn&apos;t even valid XHTML 1.0 Strict ..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2773</commentid>
    <comment_count>1</comment_count>
    <who name="Bohdan Cech">shake</who>
    <bug_when>2005-01-04 10:41:21 +0000</bug_when>
    <thetext>You can try http://validator.w3.org/check?uri=http%3A%2F%2Fwww.valxdater.net%2F</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2774</commentid>
    <comment_count>2</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-01-04 11:45:03 +0000</bug_when>
    <thetext>I am not sure what the problem is, the public identifier for XHTML 1.1 is &quot;-
//W3C//DTD XHTML 1.1//EN&quot; (no Strict as there is no XHTML 1.1 Strict document 
type) which is all the Validator says. Since the Validator does not know the 
public identifier, it echoes it rather than using a more friendly identifier. 
It would be better if the Validator pointed out the problem of using an 
unrecognized document type declaration, is that your point?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2775</commentid>
    <comment_count>3</comment_count>
    <who name="Bohdan Cech">shake</who>
    <bug_when>2005-01-04 12:51:47 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I am not sure what the problem is, the public identifier for XHTML 1.1 is &quot;-
&gt; //W3C//DTD XHTML 1.1//EN&quot; (no Strict as there is no XHTML 1.1 Strict document 
&gt; type) which is all the Validator says. Since the Validator does not know the 
&gt; public identifier, it echoes it rather than using a more friendly identifier. 
&gt; It would be better if the Validator pointed out the problem of using an 
&gt; unrecognized document type declaration, is that your point?

Well It should not say that it is Valid, if it&apos;s not even valid againts existing
dtd given there .. After validating that page validator says that the page is
perfectly valid and you can use logo W3C XHTML 1.1 on this page .. IMHO it is 
incorrect as well ..
It propably should not say anything about validity of the document if it doesnt
know type of the document?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2776</commentid>
    <comment_count>4</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-01-04 12:58:47 +0000</bug_when>
    <thetext>Aha, I see, that&apos;s a known problem, the Validator falls back to XHTML 1.0 
Transitional for XHTML documents with an unknown public identifier, this is 
fixed in the current development version. The Validator now validates the 
document against the referenced XHTML 1.0 Strict document type definition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2920</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2005-01-28 11:31:11 +0000</bug_when>
    <thetext>If the validator doesn&apos;t recognise the DOCTYPE, it should not assume anything. 
At the moment, validating something that says:

   &lt;!DOCTYPE html PUBLIC &quot;-//TEST/VALIDATE ME//EN&quot; &quot;http://example.com/&quot;&gt;

...always says it is valid. It should either download the DTD and validate 
against that, or claim it cannot validate it. It should definitely never 
validate against something other than the specified DTD.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2921</commentid>
    <comment_count>6</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-01-28 11:37:10 +0000</bug_when>
    <thetext>&gt; At the moment, validating something that says:
&gt;    &lt;!DOCTYPE html PUBLIC &quot;-//TEST/VALIDATE ME//EN&quot; &quot;http://example.com/&quot;&gt;
&gt; ...always says it is valid.

I am unable to reproduce this problem, it rather says

Line 1, column 46: invalid formal public identifier &quot;-//TEST/VALIDATE ME//EN&quot;: 
no SPACE after public text class

Line 1, column 69: DTD did not contain element declaration for document type 
name

...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2922</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2005-01-28 11:59:05 +0000</bug_when>
    <thetext>Here&apos;s a testcase:

   http://www.hixie.ch/tests/adhoc/xml/validating/001.xml

When I validate it at:

   http://validator.w3.org/check?uri=http%3A%2F%2Fwww.hixie.ch%2Ftests%2Fadhoc%
2Fxml%2Fvalidating%2F001.xml

...I get:

   This Page Is Valid -//TEST//VALIDATE ME//EN!

Is this fixed in the latest version?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2923</commentid>
    <comment_count>8</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-01-28 12:12:19 +0000</bug_when>
    <thetext>See http://qa-dev.w3.org/wmvs/HEAD/check?
uri=http://www.hixie.ch/tests/adhoc/xml/validating/001.xml

The Validator does not support resolution of relative references as system 
identifiers hence the error. If you change it to use some supported system 
identifier, it should at least complain about the missing declarations. So
yes, it&apos;s fixed to the extend that the Validator does not silently ignore such 
problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2924</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2005-01-28 12:55:33 +0000</bug_when>
    <thetext>Ah indeed, that version doesn&apos;t seem to have this bug. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4218</commentid>
    <comment_count>10</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2005-02-04 19:06:09 +0000</bug_when>
    <thetext>Current CVS HEAD will twig to the parse mode from the Content-Type if the
DOCTYPE Declaration is missing or bogus, fall back to the appropriate
Transitional DTD, and warn you of this fact.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>