Skip to content

Commit

Permalink
fix: Fix tXml conversion to DOMElement (#6538)
Browse files Browse the repository at this point in the history
Fixes #6524
  • Loading branch information
avelad authored and joeyparrish committed May 6, 2024
1 parent 812c7e2 commit 25c37e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/tXml.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ shaka.util.TXml = class {
element.setAttribute(k, v);
}

if (doParents && node.parent) {
if (doParents && node.parent && node.parent.tagName != '?xml') {
const parentElement = TXml.txmlNodeToDomElement(
node.parent, /* doParents= */ true, /* doChildren= */ false);
parentElement.appendChild(element);
Expand Down

0 comments on commit 25c37e0

Please sign in to comment.