use localName instead of tagName, to support dzi xml with namespaces

This commit is contained in:
rlskoeser 2014-08-14 18:06:29 -04:00
parent e1dde133e1
commit 8662bf9496

View File

@ -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,