File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ export function create_fragment_with_script_from_html(html) {
1818 var content = create_fragment_from_html ( html ) ;
1919 var scripts = content . querySelectorAll ( 'script' ) ;
2020 for ( const script of scripts ) {
21- var newScript = document . createElement ( 'script' ) ;
21+ var new_script = document . createElement ( 'script' ) ;
2222 for ( var i = 0 ; i < script . attributes . length ; i ++ ) {
23- newScript . setAttribute ( script . attributes [ i ] . name , script . attributes [ i ] . value ) ;
23+ new_script . setAttribute ( script . attributes [ i ] . name , script . attributes [ i ] . value ) ;
2424 }
25- newScript . textContent = script . textContent ;
26- /** @type {Node } */ ( script . parentNode ) . replaceChild ( newScript , script ) ;
25+ new_script . textContent = script . textContent ;
26+ /** @type {Node } */ ( script . parentNode ) . replaceChild ( new_script , script ) ;
2727 }
2828 return content ;
2929}
You can’t perform that action at this time.
0 commit comments