Strange Google Maps v3 geocode behavior when a quote is in the address

Posted by AlexV on Stack Overflow See other posts from Stack Overflow or by AlexV
Published on 2010-05-04T20:14:47Z Indexed on 2010/05/04 20:58 UTC
Read the original article Hit count: 308

See my test page.

When on the page, click the top left button "Geocode". If you are in Firefox, geocoder.geocode() will have it's status equal to ERROR (and pop an alert after a few seconds). In Internet Explorer (at least 7), everything is fine and the marker is added to the map.

If you remove the quote from the address (l'Assomption --> lAssomption), everything execute fine in Firefox.

Now with my question: how a quote can "crash" the Google Maps V3 API only in Firefox!?

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about google-maps-api-3