dillon1000/react

Commit

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.
Browse files
Changed paths4 files
First-parent comparison
M scripts/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…