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

trimLeft and trimRight not defined in Internet Explorer #319

Closed
jvoigtlaender opened this Issue Aug 1, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@jvoigtlaender
Contributor

jvoigtlaender commented Aug 1, 2015

It seems the latest IE (as well as earlier ones) does not support JavaScript's trimLeft and trimRight on strings (while it supports trim, at least the latest IE). As a consequence, Elm code using String.trimLeft and String.trimRight will fail on IE.

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Aug 1, 2015

Contributor

Confirmed at MSDN that IE does not support trimLeft and trimRight on strings. Also found some other mentions online of these functions being "non-standard". So maybe avoid relying on them?

Contributor

jvoigtlaender commented Aug 1, 2015

Confirmed at MSDN that IE does not support trimLeft and trimRight on strings. Also found some other mentions online of these functions being "non-standard". So maybe avoid relying on them?

@TheSeamau5

This comment has been minimized.

Show comment
Hide comment
@TheSeamau5

TheSeamau5 Aug 1, 2015

Contributor

Yeah, Mozilla recommends against both trimLeft and trimRight.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/TrimLeft

Contributor

TheSeamau5 commented Aug 1, 2015

Yeah, Mozilla recommends against both trimLeft and trimRight.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/TrimLeft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment