<?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>5222</bug_id>
          
          <creation_ts>2007-10-23 12:24:33 +0000</creation_ts>
          <short_desc>Page is valid from upload or copy/paste but not valid from link</short_desc>
          <delta_ts>2007-10-29 15:31:36 +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>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.sunflowertherapies.net/links/videolinks/shinevideo.html</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="Stuart Wilson">sjrw</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>sjrw</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>17354</commentid>
    <comment_count>0</comment_count>
    <who name="Stuart Wilson">sjrw</who>
    <bug_when>2007-10-23 12:24:33 +0000</bug_when>
    <thetext>From link it says the code is invalid:
This page is not Valid (no Doctype found)!
 No Character Encoding Found! Falling back to UTF-8.
 Unable to Determine Parse Mode!
 Line 1, Column 0: end of document in prolog.
But on upload it changes to a valid page:
The uploaded document &quot;C:\wamp\www\links\videolinks\shinevideo.html&quot; was checked and found to be valid XHTML 1.0 Transitional. This means that the resource in question identified itself as &quot;XHTML 1.0 Transitional&quot; and that we successfully performed a formal validation using an SGML or XML Parser (depending on the markup language used). 
**
I have a few pages with the same code in the same folder and same happens.
All other pages on my site will validate from a link.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17371</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-10-24 03:42:26 +0000</bug_when>
    <thetext>There seems to be a misconfiguration in your server somewhere.
Where an HTTP request is made with
Connection: close
the server returns no content at all (which is what the validator is getting, see e.g validation results with &quot;show source&quot; on).

Most browsers will see the page (because they use Connection: keep-alive) but a number of other agents, such as search engine crawlers, will have the same issue.

I recommend fixing your server config to allow non-keep-alive connections.

*** This bug has been marked as a duplicate of bug 4586 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17384</commentid>
    <comment_count>2</comment_count>
    <who name="Stuart Wilson">sjrw</who>
    <bug_when>2007-10-24 09:49:10 +0000</bug_when>
    <thetext>I don&apos;t understand this even more now.
This is the opposite of bug 4586.
When I validate http://validator.w3.org/check?uri=referer from http://www.sunflowertherapies.netindex.html it says valid.
Yet when I do the same at validome it says invalid on the same page. Contrary to bug 4586.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17427</commentid>
    <comment_count>3</comment_count>
    <who name="Stuart Wilson">sjrw</who>
    <bug_when>2007-10-26 00:17:53 +0000</bug_when>
    <thetext>Further testing
I now have a page called http://www.sunflowertherapies.net/links/videolinks/test.html
which validates correctly.
In the code there is a section that is commented out.

&lt;!--
This is the piece i cut out and then it doesnt validate - but it says &quot;no doctype found&quot; - the two files are identical apart from this part...

&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table style=&quot;text-align: left; width: 800px;&quot; summary=&quot;base for the bumf&quot; border=&quot;0&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;
Whether you&amp;#8217;re planning a holiday or live nearby, Wendy and Stuart at&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;Sunflower Holistic Therapies&lt;/em&gt;&lt;/strong&gt; near Antequera will make sure you leave feeling refreshed, relaxed and beautiful - inside and out!  - and if you&amp;#8217;re not sure which treatment is right for you, you can learn more from the&amp;nbsp;&amp;#8217;treatments&amp;#8217; pages or contact us for guidance.&amp;nbsp;&amp;nbsp; Decided on your treatment already?&amp;nbsp;&amp;nbsp;Then simply email us or call to&amp;nbsp;make your appointment.&lt;/p&gt;

Down to her I cut out and then it say - no doctype found
--&gt;

Commented out it is fine. but when i cut it out to tidy up the page it does not validate from a link.
How can a piece of code near the bottom of the page make it say there is no doctype stated.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17428</commentid>
    <comment_count>4</comment_count>
    <who name="Stuart Wilson">sjrw</who>
    <bug_when>2007-10-26 00:23:03 +0000</bug_when>
    <thetext>Further to this bug...
I have just pasted the commented out piece of code into all of the previously failed pages in the same directory and it magically makes them all validate from a link.
Now can you find out why for me please.
It cannot be a server issue.
Perhaps it is the length of the page that is causing it to fail the validation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17473</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-10-29 10:28:04 +0000</bug_when>
    <thetext>Stuart,

The addresses you have now all redirect to a &quot;404&quot; page, which is what the validator is checking. I am not sure what you are doing with your server, but if you keep changing the setup, it&apos;s impossible to debug consistently.

Furthermore, I am rather confident about my original diagnosis, before you started changing things around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17477</commentid>
    <comment_count>6</comment_count>
    <who name="Stuart Wilson">sjrw</who>
    <bug_when>2007-10-29 15:31:36 +0000</bug_when>
    <thetext>(In reply to comment #5)
Sorry - I changed the folder layout without thinking.
The pages are on http://www.sunflowertherapies.net/videolinks

and are test.html plus others.
(I have another, test1.html which is for divx player and avi files where i use the embed tag, but i dont really expect that to be valid.)

All validate with a piece of commented out code, but non without that commented code.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>