Ticket #3260 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Unmatched </a> tag (XHTML compliance?)

Reported by: manchito Owned by: ahocever
Priority: minor Milestone: 2.11 Release
Component: Layer.Bing Version: SVN
Keywords: tag match html Cc:
State:

Description

The attribution HTML code for Bing layers throws an error, at least in xhtml strict documents:

Fehler: Nicht übereinstimmendes Tag. Erwartet: </a>.
Quelldatei: 
Zeile: 1, Spalte: 383
Quelltext:
<html xmlns="http://www.w3.org/1999/xhtml">
  <body xmlns="http://www.w3.org/1999/xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml">
      <span class="olBingAttribution road">
    <div>
      <a target="_blank" href="http://www.bing.com/maps/">
        <img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"></img>
    </div></a>© AND © 2011 Microsoft Corporation <a style="white-space: nowrap" target="_blank" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a></span></

I fixed it locally with the attached patch.

Attachments

openlayers_bing_attribution.patch Download (3.5 KB) - added by manchito 2 years ago.

Change History

Changed 2 years ago by manchito

Changed 2 years ago by tschaub

  • status changed from new to closed
  • resolution set to fixed

(In [11889]) Correcting markup in attribution template for Bing layer. p=manchito r=me (closes #3260).

Changed 2 years ago by tschaub

Thanks for the catch. As an aside, we recommend you use <!DOCTYPE html> instead of XHTML.

Also, please see our page on how to contribute and send in a CLA if you are able. Thanks.

Note: See TracTickets for help on using tickets.