openseadragon/openseadragon — pull request #465 by rlskoeser (2014-08-18 18:22:47+00:00)
Title: Support dzi xml with namespaces in Firefox

I'm embarrassed to say I didn't test the changes in #462 as thoroughly as I should have. Apparently getElementsByTagName is namespace-sensitive in some browsers (Firefox) but not others.

This commit adds fallback logic to use getElementsByTagNameNS with the detected namespace from the xml when getElementsByTagName results in an undefined value or empty nodes list for the expected node or nodes.