diff --git a/.changeset/silent-adults-relax.md b/.changeset/silent-adults-relax.md new file mode 100644 index 0000000000..9277514aa2 --- /dev/null +++ b/.changeset/silent-adults-relax.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: allow arbitrary content in `, but we assume it here - option: { only: ['#text'] }, form: { descendant: ['form'] }, a: { descendant: ['a'] }, button: { descendant: ['button'] }, @@ -92,8 +89,6 @@ const disallowed_children = { h4: { descendant: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] }, h5: { descendant: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] }, h6: { descendant: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] }, - // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect - select: { only: ['option', 'optgroup', '#text', 'hr', 'script', 'template'] }, // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption