Adding an extra check for IE, where request.responseXML is true on occasion even if the documentElement doesn't exist. r=crschmidt (closes #1428)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-03-21 17:34:27 +00:00
parent 03fc6aacd4
commit f07e0ccda6
3 changed files with 5 additions and 6 deletions

View File

@@ -131,8 +131,8 @@ OpenLayers.Layer.GeoRSS = OpenLayers.Class(OpenLayers.Layer.Markers, {
*/
parseData: function(ajaxRequest) {
var doc = ajaxRequest.responseXML;
if (!doc) {
doc = OpenLayers.parseXMLString(ajaxRequest.responseText);
if (!doc || !doc.documentElement) {
doc = OpenLayers.Format.XML.prototype.read(ajaxRequest.responseText);
}
if (this.useFeedTitle) {