dillon1000/react
Commit
Browse files Warn if upper-case tags are used
In #2756 we ended up using toLowerCase to allow case insensitive HTML tags. However, this requires extra processing every time we access the tag or at least we need to process it for mount and store it in an extra field which wastes memory. So instead, we can just enforce case sensitivity for HTML since this might matter for the XML namespaces like SVG anyway.
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…