try namespaced element first for ie7 - what a godawful mess

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-12-12 23:16:08 +00:00
parent 5a70226676
commit fc442271b7

View File

@@ -315,9 +315,15 @@
"given graphicHeight and graphicWidth, both are set: width"); "given graphicHeight and graphicWidth, both are set: width");
feature.style = customStyle5; feature.style = customStyle5;
layer.drawFeature(feature); layer.drawFeature(feature);
var fill = root.firstChild.getElementsByTagName("fill")[0]; var fill = root.firstChild.getElementsByTagName("v:fill")[0];
if (fill == null) fill = root.firstChild.getElementsByTagName("v:fill"); var opacity;
var opacity = fill.getAttribute('opacity'); if(fill) {
opacity = fill.getAttribute('opacity');
}
if(opacity === undefined) {
fill = root.firstChild.getElementsByTagName("fill")[0];
opacity = fill.getAttribute('opacity');
}
t.eq(opacity, t.eq(opacity,
customStyle5.graphicOpacity, customStyle5.graphicOpacity,
"graphicOpacity correctly set"); "graphicOpacity correctly set");