geoext/geoext — Issue #23: WFSCapabilitiesReader does not take version into account
Author: geographika
Created: 2012-02-02 13:46:41+00:00
State: open

The following line in WFSCapabilitiesReader.js throws an error if the GetCapabilities version is set to 1.1.0

```javascript
var protocolDefaults = {
url: data.capability.request.getfeature.href.post
};
```

The XML for GetCapabilities 1.1.0 does not include a capability section (as version 1.0) did. For example compare:

http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?version=1.1.0&request=getcapabilities&service=wfs
http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?version=1.0&request=getcapabilities&service=wfs

It will throw a ```TypeError: data.capability is undefined.```

It looks like this has been brought up on the mailing list previously - http://www.mail-archive.com/users@geoext.org/msg01703.html