Skip to content

Commit 4969bf3

Browse files
Merge pull request #25 from shivamagarwal2510/test
Allow <script> and <template> tags in <select> tag
2 parents 74dd2da + 110872b commit 4969bf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ function isTagValidWithParent(tag: string, parentTag: ?string): boolean {
297297
tag === 'hr' ||
298298
tag === 'option' ||
299299
tag === 'optgroup' ||
300-
tag === '#text'
300+
tag === '#text' ||
301+
tag === 'script' ||
302+
tag === 'template' ||
301303
);
302304
case 'optgroup':
303305
return tag === 'option' || tag === '#text';

0 commit comments

Comments
 (0)