dillon1000/react

Commit

Make IE 11 not complain about non-crucial style attribute hydration mismatch (#13534)

IE 11 parses & normalizes the style attribute as opposed to other
browsers. It adds spaces and sorts the properties in some
non-alphabetical order. Handling that would require sorting CSS
properties in the client & server versions or applying
`expectedStyle` to a temporary DOM node to read its `style` attribute
normalized. Since it only affects IE, we're skipping style warnings
in that browser completely in favor of doing all that work.

Fixes #11807
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactServerRenderingHydration.js ModifiedM packages/react-dom/src/client/ReactDOMComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…