From 8f2999da29e780952c732abe06df43dae99cd856 Mon Sep 17 00:00:00 2001 From: gwills Date: Tue, 24 Sep 2013 21:49:54 +0100 Subject: [PATCH] Use $.parseXml for parsing string as XML --- src/tilesource.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tilesource.js b/src/tilesource.js index 9055047b..8abe8cf0 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -300,8 +300,7 @@ $.TileSource.prototype = { callback = function( data ){ if( typeof(data) === "string" ) { - var tmp = new DOMParser(); - data = tmp.parseFromString( data , "text/xml" ); + data = $.parseXml( data ); } var $TileSource = $.TileSource.determineType( _this, data, url ); if ( !$TileSource ) {