diff options
-rw-r--r-- | core/js/files/iedavclient.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/files/iedavclient.js b/core/js/files/iedavclient.js index 4e2c17abc55..ecf1d1bb660 100644 --- a/core/js/files/iedavclient.js +++ b/core/js/files/iedavclient.js @@ -82,6 +82,11 @@ var parts = name.split(':'); var tagName = parts[1]; var namespace = resolver(parts[0]); + // make sure we can get elements + if (typeof node === 'string') { + var parser = new DOMParser() + node = parser.parseFromString(node, 'text/xml') + } if (node.getElementsByTagNameNS) { return node.getElementsByTagNameNS(namespace, tagName); } |