Task table sorting fails on Internet Explorer versions older than 12
Issue #742
resolved
The JavaScript method String.prototype.includes
does not exist in Internet Explorer prior to version 12:
https://stackoverflow.com/questions/36574351/includes-not-working-in-internet-explorer
I think it can be replaced with String.prototype.indexOf
:
"A test string".includes("est");
can be replaced (with a little modification to the logic) with:
"A test string".indexOf("est");
.includes()
returns a Boolean result
.indexOf()
returns -1 if the string is absent, or the character index of its position; logic needs to test for -1 rather than Boolean false.
Comments (2)
-
reporter -
- changed status to resolved
Merged in issue742brokenTaskTableSorting (pull request #298)
Sorting of task tables now works in IE11. Fixes issue
#742Approved-by: Ed McDonagh
→ <<cset 24cf30d53a40>>
- Log in to comment
Sorting of task tables now works in IE11. References issue
#742→ <<cset 4b42615ce114>>