You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I got this warning: Warning: Extra attributes from the server: preserveAspectRatio,viewBox during client side hydratation when my react tree contains mixed case attributes such as these svg ones.
What is the expected behavior?
No warnings because there are no difference between server and client attributes.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16.0.0-rc.2
This worked on 15.*
This seems to happen because the attribute name is put to lowercase here:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I got this warning:
Warning: Extra attributes from the server: preserveAspectRatio,viewBox
during client side hydratation when my react tree contains mixed case attributes such as these svg ones.What is the expected behavior?
No warnings because there are no difference between server and client attributes.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16.0.0-rc.2
This worked on 15.*
This seems to happen because the attribute name is put to lowercase here:
react/src/renderers/dom/fiber/ReactDOMFiberComponent.js
Line 901 in 6552519
but not in the set here:
react/src/renderers/dom/fiber/ReactDOMFiberComponent.js
Line 915 in 6552519
As the set removal is done with the lowercased attribute:
react/src/renderers/dom/fiber/ReactDOMFiberComponent.js
Line 1011 in 6552519
it stays in the
extraAttributeNames
set and I got wrongly the previous warning.The text was updated successfully, but these errors were encountered: