mirror of https://github.com/sveltejs/svelte
* fix: strip event handlers during SSR * whatever conduitry you're not that cool * tweakpull/17741/head
parent
73098bb26c
commit
a0c7f28915
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: strip event handlers during SSR
|
||||
@ -0,0 +1,3 @@
|
||||
<div id="profile-123" class="card">content</div>
|
||||
|
||||
<img src="x" alt="photo" />
|
||||
@ -0,0 +1,13 @@
|
||||
<script>
|
||||
const userdata = {
|
||||
id: 'profile-123',
|
||||
class: 'card',
|
||||
onclick: 'alert(1)',
|
||||
onerror: 'alert(1)',
|
||||
onfocus: 'alert(1)',
|
||||
onmouseover: 'alert(1)'
|
||||
};
|
||||
</script>
|
||||
|
||||
<div {...userdata}>content</div>
|
||||
<img src="x" alt="photo" {...{ onerror: 'alert(1)', onload: 'alert(1)' }} />
|
||||
Loading…
Reference in new issue