mirror of https://github.com/sveltejs/svelte
fix: ssr comments in head elements that require raw content (#10936)
* added raw elements set * added test * added changeset * moved raw text elements to constands and made array * moved to correct constants * fix test * fix constants formattingobject-freeze-fix
parent
322737ac01
commit
d061f2f137
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ssr comments in head elements that require raw content
|
@ -0,0 +1,7 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
compileOptions: {
|
||||||
|
preserveComments: true
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,16 @@
|
|||||||
|
<!--[-->
|
||||||
|
<!--[-->
|
||||||
|
<title>lorem</title>
|
||||||
|
<!--]-->
|
||||||
|
<!--[-->
|
||||||
|
<style>
|
||||||
|
.ipsum {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!--]-->
|
||||||
|
<!--[-->
|
||||||
|
<script>
|
||||||
|
console.log(true);
|
||||||
|
</script>
|
||||||
|
<!--]--><!--]-->
|
@ -0,0 +1,3 @@
|
|||||||
|
<svelte:element this="title">lorem</svelte:element>
|
||||||
|
<svelte:element this="style">{'.ipsum { display: block; }'}</svelte:element>
|
||||||
|
<svelte:element this="script">{'console.log(true);'}</svelte:element>
|
Loading…
Reference in new issue