Skip to content

Commit 95465dc

Browse files
Allow <script> and <template> tags in <select> tag (#31837)
1 parent 74dd2da commit 95465dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dom-bindings/src/client/validateDOMNesting.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ function isTagValidWithParent(tag: string, parentTag: ?string): boolean {
297297
tag === 'hr' ||
298298
tag === 'option' ||
299299
tag === 'optgroup' ||
300+
tag === 'script' ||
301+
tag === 'template' ||
300302
tag === '#text'
301303
);
302304
case 'optgroup':

0 commit comments

Comments
 (0)