mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Merge pull request #462 from rlskoeser/ns-aware
Support dzi xml with namespaces
This commit is contained in:
commit
31e64bb05b
@ -107,7 +107,7 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead
|
|||||||
var ns;
|
var ns;
|
||||||
if ( data.Image ) {
|
if ( data.Image ) {
|
||||||
ns = data.Image.xmlns;
|
ns = data.Image.xmlns;
|
||||||
} else if ( data.documentElement && "Image" == data.documentElement.tagName ) {
|
} else if ( data.documentElement && "Image" == data.documentElement.localName ) {
|
||||||
ns = data.documentElement.namespaceURI;
|
ns = data.documentElement.namespaceURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ function configureFromXML( tileSource, xmlDoc ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
var root = xmlDoc.documentElement,
|
var root = xmlDoc.documentElement,
|
||||||
rootName = root.tagName,
|
rootName = root.localName,
|
||||||
configuration = null,
|
configuration = null,
|
||||||
displayRects = [],
|
displayRects = [],
|
||||||
dispRectNodes,
|
dispRectNodes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user