-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
fix(compiler-dom): update HTML nesting validation for Chrome 134+ spec #13720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ const onlyValidChildren: Record<string, Set<string>> = { | |
'template', | ||
]), | ||
optgroup: new Set(['option']), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per spec, |
||
select: new Set(['optgroup', 'option', 'hr']), | ||
select: new Set(['optgroup', 'option', 'hr', 'button']), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per spec, |
||
// table | ||
table: new Set(['caption', 'colgroup', 'tbody', 'tfoot', 'thead']), | ||
tr: new Set(['td', 'th']), | ||
|
@@ -74,7 +74,6 @@ const onlyValidChildren: Record<string, Set<string>> = { | |
// these elements can not have any children elements | ||
script: emptySet, | ||
iframe: emptySet, | ||
option: emptySet, | ||
textarea: emptySet, | ||
style: emptySet, | ||
title: emptySet, | ||
|
@@ -108,6 +107,7 @@ const onlyValidParents: Record<string, Set<string>> = { | |
|
||
/** maps element to set of elements that can not be it's children, others can */ | ||
const knownInvalidChildren: Record<string, Set<string>> = { | ||
option: new Set(['div', 'p']), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per spec, |
||
p: new Set([ | ||
'address', | ||
'article', | ||
|