mirror of https://github.com/sveltejs/svelte
parent
b26aa1c865
commit
cdd3575026
@ -1,3 +1,4 @@
|
|||||||
<div
|
<div
|
||||||
foo=""></div><script>alert(42)</script>"
|
foo=""></div>\<script>alert(42)</script>"
|
||||||
|
bar=""></div>\<script>alert(42)</script>"
|
||||||
></div>
|
></div>
|
@ -1,5 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
export let foo = '"></div><script>alert(42)</' + 'script>';
|
export let foo = '"></div>\\<script>alert(42)</' + 'script>';
|
||||||
|
export let bar = { toString: () => '"></div>\\<script>alert(42)<\/script>' };
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div foo={foo}></div>
|
<div foo={foo} bar={bar}></div>
|
||||||
|
Loading…
Reference in new issue