mirror of https://github.com/sveltejs/svelte
alternative approach to #14624
parent
0ec251f09d
commit
a031df8c0d
@ -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