<?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>1828</bug_id>
          
          <creation_ts>2005-08-02 06:03:33 +0000</creation_ts>
          <short_desc>Apparent PHP Parsing Failure</short_desc>
          <delta_ts>2005-08-02 06:49:20 +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.7.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</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="Adrian Brooks">azrealshelper</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>5286</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Brooks">azrealshelper</who>
    <bug_when>2005-08-02 06:03:33 +0000</bug_when>
    <thetext>I came to the site in an attempt to see if I could clean up some of my code. 
When I submitted the URL for your checker to go to, it resulted in showing 
HTML source code that did not contain any of the resulting HTML that would 
have been generated by my server after all PHP processes would have completed, 
thus spitting out straight HTML. Is there some way around this that I am not 
aware of or is this something that is not possible due to the fact that your 
checker is incapable of parsing the post-processed PHP file?

Thanks

Adrian Brooks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5287</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-08-02 06:08:33 +0000</bug_when>
    <thetext>It is likely that your script expects some HTTP headers the Validator does not 
send, for example, the User-Agent header does not contain the string &quot;Mozilla&quot; 
as it would for most browsers. Other than that there is no difference between a 
browser loading your web site and the Validator doing it, so this can&apos;t be a 
bug in the Validator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5288</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Brooks">azrealshelper</who>
    <bug_when>2005-08-02 06:18:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; It is likely that your script expects some HTTP headers the Validator does 
not 
&gt; send, for example, the User-Agent header does not contain the 
string &quot;Mozilla&quot; 
&gt; as it would for most browsers. Other than that there is no difference 
between a 
&gt; browser loading your web site and the Validator doing it, so this can&apos;t be a 
&gt; bug in the Validator.

Wouldn&apos;t it be safe to assume though, that all necessary headers are pre-
processed at my server before the file being checked as a URL submission is 
fully parsed for validation.

See, the source code that I viewed in the validator&apos;s results is completely 
missing an entire array of &lt;option&gt; form elements that are present post-
processing. Also, the validator is suggesting that the respective closing 
&lt;/select&gt; tag is not present as well, and yet that is a static inclusion in 
the actual file, not even PHP generated, so this is where my suspicion begins 
to wonder whether this may actually be the result of some form of a bug.

I tried it in both the current version of the checker and the new, beta 
version and the new beta version did yield only one failed validation, as 
opposed to the 26 the current one had yielded.

Thanks for the reply, btw.

~Adrian</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5289</commentid>
    <comment_count>3</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-08-02 06:25:22 +0000</bug_when>
    <thetext>Yes, what I&apos;m saying is that you have a bug in your script that generates 
correct output for some user agents and incorrect output for other user agents 
such as the Validator. The Validator can only process what the web server 
returns, and what the web server returns is totally up to the web server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5290</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2005-08-02 06:27:38 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; See, the source code that I viewed in the validator&apos;s results is completely 
&gt; missing an entire array of &lt;option&gt; form elements that are present post-
&gt; processing.

The validator is only showing the source it received. If, for some reason, your server did not send the 
same document it serves e.g browsers, it&apos;s your server&apos;s faul, not the validator&apos;s.

&gt; Also, the validator is suggesting that the respective closing 
&gt; &lt;/select&gt; tag is not present as well

You probably misread the validator&apos;s error here (although, since you are not giving a URI, it&apos;s hard to 
tell). Most likely the validator said &quot;there should be a &lt;/select&gt; here and there isn&apos;t&quot;. This is very 
different.

&gt; I tried it in both the current version of the checker and the new, beta 
&gt; version and the new beta version did yield only one failed validation, as 
&gt; opposed to the 26 the current one had yielded.

The difference in error numbers can have many causes, very likely irrelevant to your bug report. Just 
check whether both versions show the same source when you check the &quot;show source box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5291</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Brooks">azrealshelper</who>
    <bug_when>2005-08-02 06:36:42 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #2)
&gt; &gt; See, the source code that I viewed in the validator&apos;s results is 
completely 
&gt; &gt; missing an entire array of &lt;option&gt; form elements that are present post-
&gt; &gt; processing.
&gt; The validator is only showing the source it received. If, for some reason, 
your server did not send the 
&gt; same document it serves e.g browsers, it&apos;s your server&apos;s faul, not the 
validator&apos;s.
&gt; &gt; Also, the validator is suggesting that the respective closing 
&gt; &gt; &lt;/select&gt; tag is not present as well
&gt; You probably misread the validator&apos;s error here (although, since you are not 
giving a URI, it&apos;s hard to 
&gt; tell). Most likely the validator said &quot;there should be a &lt;/select&gt; here and 
there isn&apos;t&quot;. This is very 
&gt; different.
&gt; &gt; I tried it in both the current version of the checker and the new, beta 
&gt; &gt; version and the new beta version did yield only one failed validation, as 
&gt; &gt; opposed to the 26 the current one had yielded.
&gt; The difference in error numbers can have many causes, very likely irrelevant 
to your bug report. Just 
&gt; check whether both versions show the same source when you check the &quot;show 
source box.

Ok...I can&apos;t even begin to appologize for this...upon reading your replies, it 
just dawned on me that what I was supplying for my URI to the validator was 
missing something extremely important. Now, after modifying it to include some 
missing GET data...it only returns with a unclosed &lt;tr&gt; error.

Original URL submitted:
http://www.goth-greetings.com/categories.php

Correct URL submission:
http://www.goth-greetings.com/categories.php?destination=14

20 years as a programmer and you would think I would be able to have seen 
that. Sheesh.

Any idea what the error that is resulting is caused by though?

Sincerely appologetic,

~Adrian</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5292</commentid>
    <comment_count>6</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-08-02 06:45:08 +0000</bug_when>
    <thetext>Well, you have

129:   		  &lt;tr valign=&quot;top&quot;&gt;
130:   		  &lt;/tr&gt;

which lacks a &lt;td&gt; or &lt;th&gt; element which is required for table rows. It seems 
you should remove the empty row.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5293</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2005-08-02 06:47:28 +0000</bug_when>
    <thetext>Adrian, no worry, it happens :)

Closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5294</commentid>
    <comment_count>8</comment_count>
    <who name="Adrian Brooks">azrealshelper</who>
    <bug_when>2005-08-02 06:49:20 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Adrian, no worry, it happens :)
&gt; Closing.

Yeah, I was just looking over my php code to see why its not producing that. 
the &lt;td&gt;&apos;s are dynamically produced in the php as a result of a php browser 
detection class I am using to provide the proper output for NS or MSIE. So, 
thats on my end also.

Thanks for all your patience and take care now.

~Adrian</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>