Skip to content

Commit b710030

Browse files
committed
fix: better handle hydration of script/style elements
1 parent 6e143c1 commit b710030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dom/hydration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function hydrate_next() {
4646
// If we're hydrating inside a <script> or <style> element then there is no
4747
// closing anchor
4848
if (parent_node_name === 'SCRIPT' || parent_node_name === 'STYLE') {
49-
return;
49+
return hydrate_node;
5050
}
5151
}
5252
return set_hydrate_node(sibling);

0 commit comments

Comments
 (0)