mirror of https://github.com/sveltejs/svelte
don't allow children in svelte:options (#11250)
parent
f632b2a944
commit
a764f4e88e
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
breaking: don't allow children in svelte:options
|
@ -0,0 +1,9 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
error: {
|
||||||
|
code: 'invalid-element-content',
|
||||||
|
message: '<svelte:options> cannot have children',
|
||||||
|
position: [16, 16]
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
<svelte:options>contents</svelte:options>
|
Loading…
Reference in new issue