Re: Bugs in XHTML validator

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" "">
    <html xmlns="">

> 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 UTC