I have an URL in IFRAME with parameters like this:
<iframe src="http://www.example.com/id=123&place=123"></iframe>
Works perfectly on FF3+, IE6+ (believe in me) and Safari 4, but in Safari 5 is different. S5 changes the URL to http://www.example.com/id=123 & place=123
Someone knows how can I do a workaround to solve this headache?
tks.
What do you mean it changes the URL? Does it try and access the url
http://www.example.com/id=123&place=123? Or does it still try and accesshttp://www.example.com/id=123&place=123? When I try your example pointing tolocalhostinstead ofexample.com, and record the request from Safari 5, I get the ampersand&, not&Note that using
&in the URL in your source is actually the correct way to write it; if you write&, browsers will try to interpret the following text as an entity. If it cannot find a matching entity, then it will assume that you incorrectly used a raw&and will use that, but you need to be careful because you could accidentally form an entity instead of the actual ampersand you were requesting. So, to avoid possible mistakes, you actually should write&in your code. If you are inspecting or serializing the DOM, such as throughinnerHTML, Safari may be rewriting the URL for you to correctly use&, to avoid this sort of error.