Skip to content

Commit f7854d9

Browse files
committed
no message
1 parent f482d6d commit f7854d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dash/parser/DashParser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function DashParser(config) {
212212

213213
let ret = {};
214214
// If root element is xml node, then get first child node as root
215-
if (root.nodeName.toLowerCase().indexOf('xml') !== -1) {
215+
if (root.tagName.toLowerCase().indexOf('xml') !== -1) {
216216
for (let key in root) {
217217
if (Array.isArray(root[key])) {
218218
ret[key] = root[key][0];
@@ -223,8 +223,8 @@ function DashParser(config) {
223223
}
224224
}
225225
} else {
226-
ret[root.nodeName] = root;
227-
delete root.nodeName;
226+
ret[root.tagName] = root;
227+
delete root.tagName;
228228
}
229229
return ret;
230230
} catch (e) {

0 commit comments

Comments
 (0)