Skip to content

Commit

Permalink
Allow <script> and <template> tags in <select> tag (facebook#31837
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jonathanhefner authored Dec 18, 2024
1 parent 74dd2da commit 95465dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-dom-bindings/src/client/validateDOMNesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 95465dc

Please sign in to comment.