[OpenLayers-Commits] r12085 - trunk/openlayers/lib/OpenLayers/Format
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Jun 15 06:59:09 EDT 2011
Author: ahocevar
Date: 2011-06-15 03:59:08 -0700 (Wed, 15 Jun 2011)
New Revision: 12085
Modified:
trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js
Log:
adding a comment to explain r12084 (see #2234)
Modified: trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js 2011-06-15 07:48:06 UTC (rev 12084)
+++ trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js 2011-06-15 10:59:08 UTC (rev 12085)
@@ -66,6 +66,8 @@
// remember version does not correspond to the OWS version
// it corresponds to the WMS/WFS/WCS etc. request version
var uri = root.getAttribute("xmlns:ows");
+ // the above will fail if the namespace prefix is different than
+ // ows and if the namspace is declared on a different element
if (uri && uri.substring(uri.lastIndexOf("/")+1) === "1.1") {
version ="1.1.0";
}
More information about the Commits
mailing list