Ticket #1424 (new feature)

Opened 5 years ago

Last modified 4 years ago

OpenLayers uses innerHTML (breaks under XHTML)

Reported by: openlayers Owned by:
Priority: minor Milestone: Future
Component: general Version: 2.5
Keywords: Cc: steve@…
State:

Description

OpenLayers writes to the innerHTML properties in the DOM tree. This is forbidden when using XHTML, so OpenLayers breaks if it is embedded in a page served as application/xml+xhtml. Notably this affects Safari but not FireFox (which seems to allow writes to these properties anyway).

Change History

Changed 5 years ago by crschmidt

Code with problems that are easy to fix:

Hard to fix:

Upside: All layers and navigation controls are clean.

Downside: Attribution is a default control now, so the default map is not xhtml clean.

WhoCaresSide: XHTML is a lost cause anyway :)

Changed 4 years ago by crschmidt

  • milestone set to Future

Changed 4 years ago by ahocevar

PanZoomBar fixed in #1949

Note: See TracTickets for help on using tickets.