From 8662bf9496c7648b3f391fa603cae0168dd0fe4c Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Thu, 14 Aug 2014 18:06:29 -0400 Subject: [PATCH] use localName instead of tagName, to support dzi xml with namespaces --- src/dzitilesource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dzitilesource.js b/src/dzitilesource.js index 5ef2585e..f5b75d69 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -107,7 +107,7 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead var ns; if ( data.Image ) { ns = data.Image.xmlns; - } else if ( data.documentElement && "Image" == data.documentElement.tagName ) { + } else if ( data.documentElement && "Image" == data.documentElement.localName ) { ns = data.documentElement.namespaceURI; } @@ -221,7 +221,7 @@ function configureFromXML( tileSource, xmlDoc ){ } var root = xmlDoc.documentElement, - rootName = root.tagName, + rootName = root.localName, configuration = null, displayRects = [], dispRectNodes,