ol2 icon indicating copy to clipboard operation
ol2 copied to clipboard

Failing tests in Internet Explorer 11 on Win 8.1

Open marcjansen opened this issue 12 years ago • 3 comments

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)
  • [ ] Events/featureclick.html
    • both tests fail
  • [ ] Format/ArcXML.html
    • all write() tests fail
  • [ ] Format/OSM.html
    • the serialize() test fails
  • [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"

marcjansen avatar Jan 27 '14 11:01 marcjansen

See also #1237 and #1220, /cc @bartvde & @ahocevar

marcjansen avatar Jan 27 '14 12:01 marcjansen

... 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

marcjansen avatar Jan 27 '14 13:01 marcjansen

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.

ca0v avatar May 11 '18 15:05 ca0v