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
Currently there is no hook that would allow us to set attributes on the node before it's injected into a document. Which is unfortunate as there are some attributes in the wild that take effect only before element is injected into a document.
Since we're using innerHTML and building up a string as we go, that's not currently possible. If we switched to using createElement it would be, but I think we'd like to keep that an implementation detail so we could conditionally switch (eg, it might be better to use createElement in modern Firefox but innerHTML in IE8).
I think the better solution will be to make sure our attribute support is more versatile.
Currently there is no hook that would allow us to set attributes on the node before it's injected into a document. Which is unfortunate as there are some attributes in the wild that take effect only before element is injected into a document.
To workaround this I'm forced to replacing react injected nodes with clones on
componentDidMount
https://github.com/Gozala/firefox.html/blob/react/js/element.js#L57-L61
It would be great if react could expose node that will be inserted during
componentWillMount
or added another hook where node will be provided.The text was updated successfully, but these errors were encountered: