W3C home > Mailing lists > Public > www-validator@w3.org > April 2003

Re: Possible Bug

From: Ville Skyttä <ville.skytta@iki.fi>
Date: 11 Apr 2003 12:03:04 +0300
To: www-validator@w3.org
Message-Id: <1050051784.7735.266.camel@bobcat.ods.org>

On Tue, 2003-04-01 at 04:21, Richard Hulse wrote:
> I have responded to my own query as I think I have worked it out.
> 
> Neither the favelets that are around OR Checky escape the URL, when it appears that they should.
> 
> The standard favelet is:
> 
> javascript:void(document.location='http://validator.w3.org/check?uri='+document.location)
> 
> but it should be:
> 
> javascript:void(document.location='http://validator.w3.org/check?uri='+escape(document.location))
> 
> to work correctly.
> 
> Comments?

Yep, you're right about the escaping.  But document.location is
deprecated and has been dropped in modern browsers; window.location
works since JavaScript 1.0 and should be used instead.  I've fixed the
favelets in CVS, the fixed versions will appear in the next validator
release.  Thanks for the catch!

-- 
\/ille Skyttä
ville.skytta at iki.fi
Received on Friday, 11 April 2003 05:03:06 GMT

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