Skip to content

Commit

Permalink
fix: Fix tXml conversion to DOMElement (shaka-project#6538)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored May 6, 2024
1 parent ce7cef4 commit d494068
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 d494068

Please sign in to comment.