Skip to content

Commit

Permalink
fix(removeScriptElement): collapse a tag propertly (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco authored Nov 4, 2023
1 parent 1df2e0f commit e73ee2d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/removeScriptElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ exports.fn = () => {
continue;
}

detachNodeFromParent(node, parentNode);
const index = parentNode.children.indexOf(node);
parentNode.children.splice(index, 1, ...node.children);

Expand Down
23 changes: 23 additions & 0 deletions test/plugins/removeScriptElement.04.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e73ee2d

Please sign in to comment.