Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 4, 2018

Commits on Sep 4, 2018

  1. Make IE 11 not complain about non-crucial style attribute hydration m…

    …ismatch
    
    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 facebook#11807
    mgol committed Sep 4, 2018
    Configuration menu
    Copy the full SHA
    56b4800 View commit details
    Browse the repository at this point in the history