mirror of https://github.com/sveltejs/svelte
fix: better handle hydration of script/style elements (alternative) (#14683)
* alternative approach to #14624 * changeset * fix * lintpull/13429/merge
parent
8ba1b9ddd0
commit
ef8bd6adeb
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: better handle hydration of script/style elements
|
@ -0,0 +1,11 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
snapshot(target) {
|
||||||
|
const script = target.querySelector('script');
|
||||||
|
|
||||||
|
return {
|
||||||
|
script
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
<!--[--><!----><script>{}<!----></script><!----><!--]-->
|
@ -0,0 +1 @@
|
|||||||
|
<svelte:element this={"script"}>{"{}"}</svelte:element>
|
Loading…
Reference in new issue