mirror of https://github.com/sveltejs/svelte
fix `{@html}` assuming it lives inside a <div> (#4863)
parent
11967804af
commit
b0377cc4e4
@ -0,0 +1,18 @@
|
|||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
raw: "<tr><td>1</td><td>2</td></tr>",
|
||||||
|
},
|
||||||
|
|
||||||
|
html: `
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>5</td><td>7</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>1</td><td>2</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
`,
|
||||||
|
};
|
@ -0,0 +1,12 @@
|
|||||||
|
<script>
|
||||||
|
export let raw;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>5</td><td>7</td>
|
||||||
|
</tr>
|
||||||
|
{@html raw}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
Loading…
Reference in new issue