Skip to content

Commit a03f5ae

Browse files
aveladjoeyparrish
authored andcommitted
fix(tXml): Fix findChildrenNS when the namespace is in the element (#7896)
1 parent bb3eaff commit a03f5ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/util/tXml.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,9 @@ shaka.util.TXml = class {
555555
const schemaNS = shaka.util.TXml.getKnownNameSpace(ns);
556556
const found = [];
557557
if (elem.children) {
558+
const tagName = schemaNS ? `${schemaNS}:${name}` : name;
558559
for (const child of elem.children) {
559-
if (child && child.tagName === `${schemaNS}:${name}`) {
560+
if (child && child.tagName === tagName) {
560561
found.push(child);
561562
}
562563
}

0 commit comments

Comments
 (0)