[OpenLayers-Commits] r12402 - trunk/openlayers/lib/OpenLayers

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Sep 19 21:33:48 EDT 2011


Author: openlayersgit
Date: 2011-09-19 18:33:47 -0700 (Mon, 19 Sep 2011)
New Revision: 12402

Modified:
   trunk/openlayers/lib/OpenLayers/Util.js
Log:
Merge branch 'master' of github.com:openlayers/openlayers

Modified: trunk/openlayers/lib/OpenLayers/Util.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Util.js	2011-09-20 01:19:54 UTC (rev 12401)
+++ trunk/openlayers/lib/OpenLayers/Util.js	2011-09-20 01:33:47 UTC (rev 12402)
@@ -1505,7 +1505,11 @@
     }
     urlObject.args = OpenLayers.Util.getParameters(queryString);
 
-    //pathname (uniform browser behavior with leading "/")
+    // pathname
+    //
+    // This is a workaround for Internet Explorer where
+    // window.location.pathname has a leading "/", but
+    // a.pathname has no leading "/".
     urlObject.pathname = (a.pathname.charAt(0) == "/") ? a.pathname : "/" + a.pathname;
     
     return urlObject; 



More information about the Commits mailing list