W3C home > Mailing lists > Public > www-validator@w3.org > July 2010

Re: Bugs in XHTML validator

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Thu, 15 Jul 2010 07:12:12 +0100
Cc: www-validator@w3.org
Message-Id: <7550899D-F137-499A-8FA9-612679249A26@googlemail.com>
To: Matej Lednár <itnews@mldgroup.com>
On 14 Jul 2010, at 11:46, Matej Lednár wrote:
> I can use only<?xml version="1.0" encoding="windows-1250" ?>
> no
> <?xml version="1.0" encoding="windows-1250"?>
> look at ending chars - space between encoding and ?>.

Cannot reproduce. The validator says the following direct input is valid:

    <?xml version="1.0" encoding="windows-1250"?>
    <!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">
    <head>
    <title></title>	
    </head>
    <body>
    </body>
    </html>

> If I use
> <?xml version="1.0" encoding="windows-1250" ?>
> 
> result is
> 
> <?xml version="1.0" encoding="UTF-8" ?><!--<?xml version="1.0" encoding="windows-1250" ?>  -->

Not a bug.

To quote the result screen:

> + Using Direct Input mode: UTF-8 character encoding assumed
> 
> Unlike the “by URI” and “by File Upload” modes, the “Direct Input” mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.
> 
> If you notice a discrepancy in detected character encoding between the “Direct Input” mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.

--
Benjamin Hawkes-Lewis
Received on Thursday, 15 July 2010 06:12:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:43 GMT