From dd5fa7eaab02341b55b20c24b8450a49f672df70 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 15 Jun 2011 10:59:08 +0000 Subject: [PATCH] adding a comment to explain r12084 (see #2234) git-svn-id: http://svn.openlayers.org/trunk/openlayers@12085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/OWSCommon.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/OpenLayers/Format/OWSCommon.js b/lib/OpenLayers/Format/OWSCommon.js index 2b644d48f3..b2d71163f7 100644 --- a/lib/OpenLayers/Format/OWSCommon.js +++ b/lib/OpenLayers/Format/OWSCommon.js @@ -66,6 +66,8 @@ OpenLayers.Format.OWSCommon = OpenLayers.Class(OpenLayers.Format.XML, { // 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"; }