fix up WFSCapabilities tests, thanks pgiraud for the report (closes #2234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -66,7 +66,7 @@ OpenLayers.Format.OWSCommon = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
// remember version does not correspond to the OWS version
|
// remember version does not correspond to the OWS version
|
||||||
// it corresponds to the WMS/WFS/WCS etc. request version
|
// it corresponds to the WMS/WFS/WCS etc. request version
|
||||||
var uri = root.getAttribute("xmlns:ows");
|
var uri = root.getAttribute("xmlns:ows");
|
||||||
if (uri.substring(uri.lastIndexOf("/")+1) === "1.1") {
|
if (uri && uri.substring(uri.lastIndexOf("/")+1) === "1.1") {
|
||||||
version ="1.1.0";
|
version ="1.1.0";
|
||||||
}
|
}
|
||||||
if(!version) {
|
if(!version) {
|
||||||
|
|||||||
Reference in New Issue
Block a user