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

React fails to update TextNode in IE8 #7824

Closed
mnpenner opened this issue Sep 28, 2016 · 9 comments
Closed

React fails to update TextNode in IE8 #7824

mnpenner opened this issue Sep 28, 2016 · 9 comments

Comments

@mnpenner
Copy link
Contributor

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

React fails to update text nodes in IE8

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).

This is as close as I could get to a reproduction: https://fiddle.jshell.net/zrozubsb/1/show/

I think JSFiddle itself doesn't work in IE8 though, so it's masking the real problem, which you can see here:

image

What is the expected behavior?

DOM updates/doesn't throw error

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 15.3.1. Internet Explorer 8. Not sure if it ever worked; I have a feeling it didn't.


I will be submitting a PR for this shortly as I know you aren't actively supporting IE8 any more, but it's actually a pretty simple fix. I hope I outlined the issue well enough.

@syranide
Copy link
Contributor

#7826 (comment)

mnpenner added a commit to nucleuslabs/react that referenced this issue Sep 29, 2016
mnpenner added a commit to nucleuslabs/react that referenced this issue Sep 29, 2016
mnpenner added a commit to nucleuslabs/react that referenced this issue Sep 29, 2016
@mnpenner
Copy link
Contributor Author

Sorry, I made a mess of everything. I think I have a clean commit now: nucleuslabs@3e91942

I guess I have to submit a new PR.

@syranide
Copy link
Contributor

@mnpenner FYI, you can always reset a branch and start from scratch without closing the PR. Also yes, that commit looks fine to me 👍

@mnpenner
Copy link
Contributor Author

It closed the PR automatically when I did a hard reset. I guess because my commit got wiped in the reset? But we didn't want that commit in the history, right?

@syranide
Copy link
Contributor

@mnpenner Oh ok, that must be new GitHub-behavior or something...

@mnpenner
Copy link
Contributor Author

I thought the new PR would automatically link here because I put the issue # in the commit, but I guess not.

New PR is here

@brandonaaskov
Copy link

React discontinued React DOM support for IE8 with v15. In your Fiddle you're using React DOM 15.3.2. Have you tried using an older version, like https://npmcdn.com/react-dom@0.14.8/dist/react-dom.js?

@mnpenner
Copy link
Contributor Author

@brandonaaskov No, I have not tried reproducing this particular issue in React 0.14. Everything else seems to work in v15 though, so I'd rather stick with 15.x for as long as I can. It's only a 3-line fix to make it work.

@syranide
Copy link
Contributor

syranide commented Sep 30, 2016

@brandonaaskov @mnpenner IE8 is unofficially supported but not actively maintained, unless it breaks to the point where it's no longer worth the added code complexity.

@jimfb jimfb closed this as completed in dae3043 Oct 1, 2016
zpao pushed a commit that referenced this issue Oct 4, 2016
(cherry picked from commit dae3043)
acusti pushed a commit to brandcast/react that referenced this issue Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants