[OpenStreetMap] #5075: Embed-code contains wrong letters

OpenStreetMap trac at noreply.openstreetmap.org
Tue Dec 17 11:06:47 UTC 2013


#5075: Embed-code contains wrong letters
----------------------+-------------------------
  Reporter:  db@…     |      Owner:  rails-dev@…
      Type:  defect   |     Status:  closed
  Priority:  minor    |  Milestone:
 Component:  website  |    Version:
Resolution:  invalid  |   Keywords:
----------------------+-------------------------

Comment (by colin.smale@…):

 Replying to [comment:3 Jonathan Bennett]:
 > Replying to [comment:2 colin.smale@…]:
 > >
 > > I am not so sure that that is always true ...
 > >
 >
 > 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."

 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.

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/5075#comment:6>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list