mirror of https://github.com/sveltejs/svelte
fix: correctly hydrate empty raw blocks (#12979)
* fix: correctly hydrate empty raw blocks * lint * Update packages/svelte/src/internal/client/dom/blocks/html.js --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/12978/head
parent
448f21620f
commit
5bdf71639e
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: correctly hydrate empty raw blocks
|
@ -0,0 +1,15 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
server_props: {
|
||||
html: '<div></div>'
|
||||
},
|
||||
|
||||
props: {
|
||||
html: '<div></div>'
|
||||
},
|
||||
|
||||
test(assert, target) {
|
||||
assert.htmlEqual(target.innerHTML, '<div></div>');
|
||||
}
|
||||
});
|
@ -0,0 +1 @@
|
||||
<div>{@html ''}</div>
|
Loading…
Reference in new issue