mirror of https://github.com/sveltejs/svelte
fix: only escape attribute values for elements, not components (#9456)
* only escape attribute values for elements, not components - closes #9454 * changeset --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/9457/head
parent
9abfb52f67
commit
6f6c3a0787
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: only escape attribute values for elements, not components
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
const { prop } = $props();
|
||||
</script>
|
||||
|
||||
{prop}
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `"`
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
</script>
|
||||
|
||||
<Child prop='"'/>
|
Loading…
Reference in new issue