From 35d0c058028301ef321893d26d6752627c15ca14 Mon Sep 17 00:00:00 2001 From: Sourabh singh <96938361+SouSingh@users.noreply.github.com> Date: Tue, 31 Oct 2023 20:43:50 +0530 Subject: [PATCH 1/2] Update validateDOMNesting.js --- packages/react-dom-bindings/src/client/validateDOMNesting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dom-bindings/src/client/validateDOMNesting.js b/packages/react-dom-bindings/src/client/validateDOMNesting.js index ac7da96939a4f..f18af38f6f12a 100644 --- a/packages/react-dom-bindings/src/client/validateDOMNesting.js +++ b/packages/react-dom-bindings/src/client/validateDOMNesting.js @@ -244,7 +244,7 @@ function isTagValidWithParent(tag: string, parentTag: ?string): boolean { switch (parentTag) { // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect case 'select': - return tag === 'option' || tag === 'optgroup' || tag === '#text'; + return tag === 'option' || tag === 'optgroup' || tag === '#text' || tag === 'hr'; case 'optgroup': return tag === 'option' || tag === '#text'; // Strictly speaking, seeing an