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:
@@ -315,9 +315,15 @@
|
||||
"given graphicHeight and graphicWidth, both are set: width");
|
||||
feature.style = customStyle5;
|
||||
layer.drawFeature(feature);
|
||||
var fill = root.firstChild.getElementsByTagName("fill")[0];
|
||||
if (fill == null) fill = root.firstChild.getElementsByTagName("v:fill");
|
||||
var opacity = fill.getAttribute('opacity');
|
||||
var fill = root.firstChild.getElementsByTagName("v:fill")[0];
|
||||
var opacity;
|
||||
if(fill) {
|
||||
opacity = fill.getAttribute('opacity');
|
||||
}
|
||||
if(opacity === undefined) {
|
||||
fill = root.firstChild.getElementsByTagName("fill")[0];
|
||||
opacity = fill.getAttribute('opacity');
|
||||
}
|
||||
t.eq(opacity,
|
||||
customStyle5.graphicOpacity,
|
||||
"graphicOpacity correctly set");
|
||||
|
||||
Reference in New Issue
Block a user