Embed-code contains wrong letters #5075
Comments
Author: pnorman It is correct to encode the & in URLs as & |
Author: colin.smale[at]xs4all.nl Replying to [comment:1 pnorman]:
I am not so sure that that is always true ... It will depend on whether XHTML or legacy HTML is being used, and apparently sometimes on the browser as well according to this article from 2008: |
Author: Jonathan Bennett Replying to [comment:2 colin.smale@]:
Yes, it is, and the very article you reference points this out and explains the most common mistake of pasting an HTML encoded link directly into a browser's address bar: "The encoding of & as & is required in HTML, not in the link. When the browser sees the & in the HTML source for a link it will interpret it as an ampersand and the link target will be as intended. If you paste a URL into your browser address bar it does not expect it to be HTML and does not try to interpret any HTML encoding that it may contain. This is why your example links that you suggest we should copy/paste into a browser don't work and why we wouldn't expect them to work." |
Author: TomH Just to add to which, when you select "Link" in the share tab we do not encode the ampersand, but when you select "HTML" to get an HTML fragment we do encode it. All of which sounds correct to me. |
Author: aseerel4c26 this is a duplicate of ticket #4949 |
Author: colin.smale[at]xs4all.nl Replying to [comment:3 Jonathan Bennett]:
I stand entirely corrected. Having read the standards again it seems that accepting a bare "&" was strictly a non-compliance and everybody should have been using "&" in the first place. |
Reporter: db[at]davidb.at
[Submitted to the original trac issue database at 8.18pm, Monday, 16th December 2013]
Hi!
I want to embed a map with OpenStreetMap on my website. On building with the embed-function, the map is totally zoomed out. With the forum I found out, that there is a & instead of the "&" in the code.
You see it best here: http://www.davidb.at/karte.png
The text was updated successfully, but these errors were encountered: