mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
reverts23ab30ff87because the issue it fixed doesn't seem to be a problem anymore. textContent should be better for more things anyway, as the original309a88bcf6indicates. It should be faster because innerText requires layout. This also allows us to use strings with newlines in our rendered output and have confidence that they will render the same on subsequent re-renders. This is especially useful for es6-style backtick multi-line strings. This will be more consistent as textContent is supported almost everwhere so we won't have differing behavior between webkit and firefox. see https://github.com/facebook/react/issues/1080