Use getAttributeNS instead of getAttribute. Non-functional change. (references #1650)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2008-08-01 21:12:56 +00:00
parent a59e7f0f4e
commit eddfa62c1f

View File

@@ -248,7 +248,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
widthFactor = this.symbolSize[id] / size; widthFactor = this.symbolSize[id] / size;
// Only set the href if it is different from the current one. // Only set the href if it is different from the current one.
// This is a workaround for strange rendering behavior in FF3. // This is a workaround for strange rendering behavior in FF3.
if (node.getAttribute("href") != href) { if (node.getAttributeNS(this.xlinkns, "href") != href) {
node.setAttributeNS(this.xlinkns, "href", href); node.setAttributeNS(this.xlinkns, "href", href);
} }
node.setAttributeNS(null, "width", size); node.setAttributeNS(null, "width", size);