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

Firefox does not support innerText until Firefox 45 #1763

Open
infinnie opened this issue Mar 8, 2017 · 1 comment
Open

Firefox does not support innerText until Firefox 45 #1763

infinnie opened this issue Mar 8, 2017 · 1 comment

Comments

@infinnie
Copy link

infinnie commented Mar 8, 2017

input.value = target.innerText;

https://github.com/tastejs/todomvc/blob/master/examples/vanilla-es6/src/view.js#L40

I was afraid that it might cause compatibility issues in older Firefox versions.

See https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText

@FadySamirSadek
Copy link
Collaborator

@infinnie do you suggest doing something like this ?
input.value = target.innerText || target.textContent;

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

2 participants