<?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>2308</bug_id>
          
          <creation_ts>2005-09-27 21:33:48 +0000</creation_ts>
          <short_desc>an html file uploaded fails validation, same code pasted works</short_desc>
          <delta_ts>2005-10-18 07:26:54 +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>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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="Lorin Rivers">lrivers</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>6509</commentid>
    <comment_count>0</comment_count>
    <who name="Lorin Rivers">lrivers</who>
    <bug_when>2005-09-27 21:33:49 +0000</bug_when>
    <thetext>The validate via upload reports errors that do not exist. It appears as if extra bogus characters are 
inserted in the header.

Pasting the same content into the appropriate field validates fine.

&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;Untitled&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;Here is some text&lt;/p&gt;
    &lt;p&gt;&lt;a onclick=&quot;window.open(this.href,&apos;_blank&apos;);return false;&quot; href=&quot;http://mosasaur.com&quot;&gt;Some 
Other Site&lt;/a&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6510</commentid>
    <comment_count>1</comment_count>
      <attachid>393</attachid>
    <who name="Lorin Rivers">lrivers</who>
    <bug_when>2005-09-27 21:34:51 +0000</bug_when>
    <thetext>Created attachment 393
this document fails validation, only when uploaded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6714</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2005-10-18 07:26:54 +0000</bug_when>
    <thetext>Hello Lorin,

your document (as attached) has a bogus (non-utf-8) character after encoding=&quot;utf-8&quot;?&gt;

The validator is right to complain about it.

The fact that the error does not appear in direct input is only thanks to the fact that the garbage character 
is not kept through copy-pasting  (thanks to your OS, clipboad and/or browser).

How to fix: just remove the first few lines until the end of the doctype, and copy-paste from a correct 
source.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>393</attachid>
            <date>2005-09-27 21:34:50 +0000</date>
            <delta_ts>2005-09-27 21:34:50 +0000</delta_ts>
            <desc>this document fails validation, only when uploaded</desc>
            <filename>newwindow.html</filename>
            <type>text/html</type>
            <size>533</size>
            <attacher name="Lorin Rivers">lrivers</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz7igKg8IURPQ1RZUEUgaHRtbCBQ
VUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMCBTdHJpY3QvL0VOIuKAqCAgICAiaHR0cDovL3d3
dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtc3RyaWN0LmR0ZCI+4oCoPGh0bWwgeG1sbnM9
Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHhtbDpsYW5nPSJlbiIgbGFuZz0iZW4iPuKA
qDxoZWFkPuKAqCAgICA8bWV0YSBodHRwLWVxdWl2PSJjb250ZW50LXR5cGUiIGNvbnRlbnQ9InRl
eHQvaHRtbDsgY2hhcnNldD11dGYtOCIgLz7igKggICAgPHRpdGxlPlVudGl0bGVkPC90aXRsZT7i
gKg8L2hlYWQ+4oCoPGJvZHk+4oCoICAgIDxwPkhlcmUgaXMgc29tZSB0ZXh0PC9wPuKAqCAgICA8
cD48YSBvbmNsaWNrPSJ3aW5kb3cub3Blbih0aGlzLmhyZWYsJ19ibGFuaycpO3JldHVybiBmYWxz
ZTsiIGhyZWY9Imh0dHA6Ly9tb3Nhc2F1ci5jb20iPlNvbWUgT3RoZXIgU2l0ZTwvYT48L3A+4oCo
PC9ib2R5PuKAqDwvaHRtbD7igKg=
</data>

          </attachment>
      

    </bug>

</bugzilla>