Skip to content

Commit

Permalink
fix: remove math
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 18, 2024
1 parent 5c0a8ab commit 730649d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/compiler-dom/src/htmlNesting.ts
Expand Up @@ -58,9 +58,7 @@ const onlyValidChildren: Record<string, Set<string>> = {
'template',
]),
optgroup: new Set(['option']),
select: new Set(['optgroup', 'option']),
math: new Set(['mrow']),
script: new Set(),
select: new Set(['optgroup', 'option', 'hr']),
// table
table: new Set(['caption', 'colgroup', 'tbody', 'tfoot', 'thead']),
tr: new Set(['td', 'th']),
Expand All @@ -69,6 +67,7 @@ const onlyValidChildren: Record<string, Set<string>> = {
thead: new Set(['tr']),
tfoot: new Set(['tr']),
// these elements can not have any children elements
script: emptySet,
iframe: emptySet,
option: emptySet,
textarea: emptySet,
Expand Down

0 comments on commit 730649d

Please sign in to comment.