W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

Re: Weird file name side effect in validating.

From: Nick Kew <nick@webthing.com>
Date: Mon, 25 Nov 2002 18:46:16 +0000 (GMT)
To: Keith Hopper <kh@waikato.ac.nz>
cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.21.0211251839120.1484-100000@jarl.webthing.com>

On Sat, 23 Nov 2002, Keith Hopper wrote:

> Greetings,
>      The attached tiny file validates as xml (which was expected).  If,
> however, the same file is accidentally renamed as ch2-ex1.html then it does
> not validate corresctly.  This is, to my way of thinking, ridiculous. 
> Validtion should be the same irrespective of the file name!

Your attachment was sent to the list as "text/xml", as which it
is fine.

By renaming as .html, you presumably caused it to be sent to the
validator as "text/html".  It is not a valid HTML document.

The name is of no consequence to the validator, but it affects
many webservers, and browsers in the context of file upload.

-- 
Nick Kew
Received on Monday, 25 November 2002 13:46:29 GMT

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