From a5c9052b941c79de7b5f0bf48cac7a488881a9a0 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 28 Feb 2011 00:46:52 +0000 Subject: [PATCH] Make SVG graphicTitle standards compliant. p=potter000, r=pgiraud (Closes #2924) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Renderer/SVG.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/OpenLayers/Renderer/SVG.js b/lib/OpenLayers/Renderer/SVG.js index 995a810298..3a0fcaa9e8 100644 --- a/lib/OpenLayers/Renderer/SVG.js +++ b/lib/OpenLayers/Renderer/SVG.js @@ -260,6 +260,10 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, { if (style.graphicTitle) { node.setAttributeNS(null, "title", style.graphicTitle); + //Standards-conformant SVG + var label = this.nodeFactory(null, "title"); + label.textContent = style.graphicTitle; + node.appendChild(label); } if (style.graphicWidth && style.graphicHeight) { node.setAttributeNS(null, "preserveAspectRatio", "none");