Skip to content

Commit

Permalink
chore: update code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Dec 4, 2024
1 parent 0eaa246 commit 9c93c22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/compiler-dom/src/htmlNesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* To avoid runtime dependency on validate-html-nesting
* This file should not change very often in the original repo
* but we may need to keep it up-to-date from time to time.
* the validate-html-nexting's new code may not work in vue
* double check before updating this file.
*/

/**
Expand Down Expand Up @@ -69,15 +71,17 @@ const onlyValidChildren: Record<string, Set<string>> = {
* https://w3c.github.io/mathml-core/#dfn-mrow
*/
// math: new Set(['mrow']),
script: new Set(),

// table
table: new Set(['caption', 'colgroup', 'tbody', 'tfoot', 'thead']),
tr: new Set(['td', 'th']),
colgroup: new Set(['col']),
tbody: new Set(['tr']),
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 9c93c22

Please sign in to comment.