dillon1000/react
Commit
Browse files 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
Changed paths2 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactServerRenderingHydration.js ModifiedM packages/react-dom/src/client/ReactDOMComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…