Skip to content

Commit

Permalink
fix(tXml): Fix findChildrenNS when the namespace is in the element (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 17, 2025
1 parent 4cae707 commit 49ef370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/tXml.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,9 @@ shaka.util.TXml = class {
const schemaNS = shaka.util.TXml.getKnownNameSpace(ns);
const found = [];
if (elem.children) {
const tagName = schemaNS ? `${schemaNS}:${name}` : name;
for (const child of elem.children) {
if (child && child.tagName === `${schemaNS}:${name}`) {
if (child && child.tagName === tagName) {
found.push(child);
}
}
Expand Down

0 comments on commit 49ef370

Please sign in to comment.