[Bug 2308] an html file uploaded fails validation, same code pasted works

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2308

           Summary: an html file uploaded fails validation, same code pasted
                    works
           Product: Validator
           Version: 0.7.0
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: lrivers@gmail.com
         QAContact: www-validator-cvs@w3.org


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.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Untitled</title>
</head>
<body>
    <p>Here is some text</p>
    <p><a onclick="window.open(this.href,'_blank');return false;" href="http://mosasaur.com">Some 
Other Site</a></p>
</body>
</html>

Received on Tuesday, 27 September 2005 21:34:30 UTC