dillon1000/react
Commit
Browse files Add warning if rendering and HTMLUnknownElement (#9163)
* Add warning if rendering and HTMLUnknownElement * Records fiber tests * Fixes linting and server render tests * Incorporates review comments * Uses ownerDocument instead of document * uses el instead of creating a new element * Removes warning check of voidElementTags * Add missing space to unknown element warning * Only call isCustomComponent once * Spy on console in menuitem test Since menuitem is treated as an unknown element in jsdom it triggers the unknown element warning. * Add unknown element warning to Fiber * Replace instanceof with toString check It is more resilient. * Record tests
Changed paths4 files
First-parent comparisonscripts/fiber/tests-passing.txt ModifiedM src/renderers/dom/fiber/ReactDOMFiberComponent.js ModifiedM src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js ModifiedM src/renderers/dom/stack/client/ReactDOMComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…