Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Feb 6, 2024
1 parent 2c7d95d commit 954b4fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/svelte/src/internal/client/reconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export function create_fragment_with_script_from_html(html) {
var content = create_fragment_from_html(html);
var scripts = content.querySelectorAll('script');
for (const script of scripts) {
var newScript = document.createElement('script');
var new_script = document.createElement('script');
for (var i = 0; i < script.attributes.length; i++) {
newScript.setAttribute(script.attributes[i].name, script.attributes[i].value);
new_script.setAttribute(script.attributes[i].name, script.attributes[i].value);
}
newScript.textContent = script.textContent;
/** @type {Node} */ (script.parentNode).replaceChild(newScript, script);
new_script.textContent = script.textContent;
/** @type {Node} */ (script.parentNode).replaceChild(new_script, script);
}
return content;
}
Expand Down

0 comments on commit 954b4fd

Please sign in to comment.