W3C home > Mailing lists > Public > www-validator@w3.org > August 2011

Re: facebook & google plugins

From: Etienne Miret <etienne.miret@ens-lyon.org>
Date: Mon, 22 Aug 2011 22:39:02 +0200
Cc: www-validator@w3.org
Message-Id: <DFA43262-8E74-4383-9055-E055ACA87E3B@ens-lyon.org>
To: Craig Chant <dmo@dance-music.org>
Hello Craig,

Le 21 août 2011 à 15:09, Craig Chant a écrit :

> Thanks for the info and your help in trying to resolve this, however, I
> cannot get the facebook object method to work.
> 
> Part of the problem is my URL contains query string vars, and even URL
> encoding them doesn't seem to work.


According to my tests, %-encoding the URL works.

So if your URL is <http://www.example.com/foo%20bar?foo=0&bar=1#foobar>, you need to use "http://www.example.com/foo%2520bar%3Ffoo%3D0%26bar%3D1%23foobar" as the url or href parameters of the Facebook or Google URLs. Note how the space in the URL gets double-encoded to %2520.

How did you encode your URL when you made your tests?

Regards,

-- 
Etienne Miret
Received on Monday, 22 August 2011 20:39:31 GMT

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