Skip to content

Commit 2ae2408

Browse files
committed
fix(tXml): Fix findChildrenNS when the namespace is in the element (#7896)
1 parent c40b54c commit 2ae2408

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
@@ -556,8 +556,9 @@ shaka.util.TXml = class {
556556
const schemaNS = shaka.util.TXml.getKnownNameSpace(ns);
557557
const found = [];
558558
if (elem.children) {
559+
const tagName = schemaNS ? `${schemaNS}:${name}` : name;
559560
for (const child of elem.children) {
560-
if (child && child.tagName === `${schemaNS}:${name}`) {
561+
if (child && child.tagName === tagName) {
561562
found.push(child);
562563
}
563564
}

0 commit comments

Comments
 (0)