Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uptrimLeft and trimRight not defined in Internet Explorer #319
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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?
|
Confirmed at MSDN that IE does not support |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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
|
Yeah, Mozilla recommends against both |
jvoigtlaender commentedAug 1, 2015
It seems the latest IE (as well as earlier ones) does not support JavaScript's
trimLeftandtrimRighton strings (while it supportstrim, at least the latest IE). As a consequence, Elm code usingString.trimLeftandString.trimRightwill fail on IE.