-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
React seems to skip rendering semicolon in inline styles. #8986
Comments
Can you provide the code reproducing this? |
Since it is using SSR it seems hard to provide a fiddle. I can try to extract the code, but it's basic SSR using renderToString and renderToStaticMarkup. |
To give more precisions, looking at the output of server rendering, React seems to never add a semicolon after the last item in the style attribute. |
Maybe you have an HTML minifier that strips the |
Oh yeah you're right, we have html-minifier on the server side. It seems to remove the semicolon. Thanks for your help ! |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
With SSR we get this warning using inline styles :
I'm not sure if the browser is adding the semicolon or if react is skipping it on the server.
What is the expected behavior?
We should not get any warning, markup from client and server should match.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
15.4.2
Chrome / Linux
Firefox / Linux
The text was updated successfully, but these errors were encountered: