We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb35817 commit 62efa51Copy full SHA for 62efa51
src/dash/parser/DashParser.js
@@ -212,7 +212,7 @@ function DashParser(config) {
212
213
let ret = {};
214
// If root element is xml node, then get first child node as root
215
- if (root.nodeName.toLowerCase().indexOf('xml') !== -1) {
+ if (root.tagName.toLowerCase().indexOf('xml') !== -1) {
216
for (let key in root) {
217
if (Array.isArray(root[key])) {
218
ret[key] = root[key][0];
@@ -223,8 +223,8 @@ function DashParser(config) {
223
}
224
225
} else {
226
- ret[root.nodeName] = root;
227
- delete root.nodeName;
+ ret[root.tagName] = root;
+ delete root.tagName;
228
229
return ret;
230
} catch (e) {
0 commit comments