ol2
ol2 copied to clipboard
Failing tests in Internet Explorer 11 on Win 8.1
Many tests currently fail for me in IE 11 (Win 8.1). Details:
- [ ]
Control/SLDSelect.html- 3 tests with message "argument could not be converted to an XML node" (AFAICT from our
xml_eq-method)
- 3 tests with message "argument could not be converted to an XML node" (AFAICT from our
- [ ]
Events/featureclick.html- both tests fail
- [ ]
Format/ArcXML.html- all
write()tests fail
- all
- [ ]
Format/OSM.html- the
serialize()test fails
- the
- [x]
Format/SLD/v1_0_0_GeoServer.html(fixed with #1239)- the roundtrip test fails with the "argument could not be converted to an XML node" error from above
- [ ]
Format/WCSDescribeCoverage.html-
read()fails with an error like "cannot read property 'documentElement' of undefined or null"
-
- [ ]
Format/WMC.html-
write()fails
-
- [ ]
Format/CSWGetDomain/v2_0_2.html-
write()fails
-
- [ ]
Format/CSWGetRecords/v2_0_2.html-
write()fails
-
- [ ]
Format/XML.html-
write()fails
-
- [ ]
Layer/Bing.html- attribution test fails with an error like "cannot read property 'indexOf' of undefined or null"
- [ ]
Protocol/WFS.html- filterDelete test: "cannot read property 'documentElement' of undefined or null"
See also #1237 and #1220, /cc @bartvde & @ahocevar
... Format/SLD/v1_0_0_GeoServer.html ...
I think that a change like the one outlined below is needed for SLD:
diff --git a/lib/OpenLayers/Format/SLD/v1.js b/lib/OpenLayers/Format/SLD/v1.js
index f56971e..9b27453 100644
--- a/lib/OpenLayers/Format/SLD/v1.js
+++ b/lib/OpenLayers/Format/SLD/v1.js
@@ -33,7 +33,8 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0, {
ogc: "http://www.opengis.net/ogc",
gml: "http://www.opengis.net/gml",
xlink: "http://www.w3.org/1999/xlink",
- xsi: "http://www.w3.org/2001/XMLSchema-instance"
+ xsi: "http://www.w3.org/2001/XMLSchema-instance",
+ xmlns: "http://www.w3.org/2000/xmlns/"
},
/**
@@ -654,8 +655,14 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0, {
// For ArcGIS Server it is necessary to define this
// at the root level (see ticket:2166).
- root.setAttribute("xmlns:ogc", this.namespaces.ogc);
- root.setAttribute("xmlns:gml", this.namespaces.gml);
+ this.setAttributeNS(
+ root, this.namespaces.xmlns,
+ "xmlns:ogc", this.namespaces.ogc
+ );
+ this.setAttributeNS(
+ root, this.namespaces.xmlns,
+ "xmlns:gml", this.namespaces.gml
+ );
// add in optional name
if(sld.name) {
This is a PR now: #1239
http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/osm.html doesn't work in Edge. It shows pink tiles and there are no network errors or console messages. The only exception relates to "'ActiveXObject' is not defined" when looking for google gears factory.