Allow <script> and <template> tags in <select> tag (#31837)

This commit is contained in:
Jonathan Hefner authored and GitHub committed 2024-12-18 21:29:16 +01:00
1 parent 74dd2da9ac
commit 95465dc491
1 file changed
+2
@@ -297,6 +297,8 @@ function isTagValidWithParent(tag: string, parentTag: ?string): boolean {
tag === 'hr' ||
tag === 'option' ||
tag === 'optgroup' ||
tag === 'script' ||
tag === 'template' ||
tag === '#text'
);
case 'optgroup':