diff --git a/src/tilesource.js b/src/tilesource.js index bdebebcc..b7782dbe 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -932,7 +932,7 @@ function processResponse( xhr ){ throw new Error( $.getString( "Errors.Status", status, statusText ) ); } - if( responseText.match(/\s*<.*/) ){ + if( responseText.match(/^\s*<.*/) ){ try{ data = ( xhr.responseXML && xhr.responseXML.documentElement ) ? xhr.responseXML : diff --git a/test/data/iiif_2_0_tiled/info.json b/test/data/iiif_2_0_tiled/info.json index d9b56f62..6d5dde5e 100644 --- a/test/data/iiif_2_0_tiled/info.json +++ b/test/data/iiif_2_0_tiled/info.json @@ -18,7 +18,8 @@ "jpg", "png", "gif" - ] + ] } - ] + ], + "xmp": "\n \n \n \n \n 8 8 8\n \n \n \n \n 50\n \n \n \n \n University of Illinois Library\n \n \n \n " }