diff --git a/openseadragon.js b/openseadragon.js index b955ac28..61ecf79a 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -5659,17 +5659,16 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, { * @param {String} optional - url */ supports: function( data, url ){ - return ( - data.Image && - "http://schemas.microsoft.com/deepzoom/2008" == data.Image.xmlns - ) || ( - data.documentElement && - "Image" == data.documentElement.tagName && - "http://schemas.microsoft.com/deepzoom/2008" == - data.documentElement.namespaceURI - ); - }, + var ns; + if ( data.Image ) { + ns = data.Image.xmlns; + } else if ( data.documentElement && "Image" == data.documentElement.tagName ) { + ns = data.documentElement.namespaceURI; + } + return ( "http://schemas.microsoft.com/deepzoom/2008" == ns || + "http://schemas.microsoft.com/deepzoom/2009" == ns ); + }, /** * diff --git a/src/dzitilesource.js b/src/dzitilesource.js index b6f8db63..db8c7046 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -69,17 +69,16 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, { * @param {String} optional - url */ supports: function( data, url ){ - return ( - data.Image && - "http://schemas.microsoft.com/deepzoom/2008" == data.Image.xmlns - ) || ( - data.documentElement && - "Image" == data.documentElement.tagName && - "http://schemas.microsoft.com/deepzoom/2008" == - data.documentElement.namespaceURI - ); - }, + var ns; + if ( data.Image ) { + ns = data.Image.xmlns; + } else if ( data.documentElement && "Image" == data.documentElement.tagName ) { + ns = data.documentElement.namespaceURI; + } + return ( "http://schemas.microsoft.com/deepzoom/2008" == ns || + "http://schemas.microsoft.com/deepzoom/2009" == ns ); + }, /** *