Use $.parseXml for parsing string as XML

This commit is contained in:
gwills 2013-09-24 21:49:54 +01:00
parent 2bef2e882f
commit 8f2999da29

View File

@ -300,8 +300,7 @@ $.TileSource.prototype = {
callback = function( data ){ callback = function( data ){
if( typeof(data) === "string" ) { if( typeof(data) === "string" ) {
var tmp = new DOMParser(); data = $.parseXml( data );
data = tmp.parseFromString( data , "text/xml" );
} }
var $TileSource = $.TileSource.determineType( _this, data, url ); var $TileSource = $.TileSource.determineType( _this, data, url );
if ( !$TileSource ) { if ( !$TileSource ) {