Skip to content

Commit

Permalink
exclude noscript tags while cloning dom
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanuk-browserstack committed Oct 18, 2023
1 parent d83228a commit 1a3e610
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dom/src/clone-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function cloneNodeAndShadow({ dom, disableShadowDOM }) {
let cloneNode = (node, parent) => {
let walkTree = (nextn, nextp) => {
while (nextn) {
cloneNode(nextn, nextp);
if (nextn.nodeName != "NOSCRIPT"){
cloneNode(nextn, nextp);
}
nextn = nextn.nextSibling;
}
};
Expand Down

0 comments on commit 1a3e610

Please sign in to comment.