DataTables IE8 support

DataTables IE8 support

sandissandis Posts: 2Questions: 1Answers: 0

DataTables script load stopped on IE8 with exception

Encountered exception: SCRIPT1010: Expected identifier datatables.js (4328,22)

That Error leads to code line

Please review IE8 support!
- Testing with DataTables 1.13.6 with FixedColumns 4.3.0
- Edge with IE Mode - (Document Mode 8) - Compatibility Mode 8

If I read to the Exception details it is about reserved keyword use in code that IE8 would not allow.
Reference cases
* https://github.com/MikeMcl/bignumber.js/issues/121
* https://stackoverflow.com/questions/30251923/page-not-rendering-in-ie8-because-of-script1010-and-script-5022-errors
In this case the reserved keyword is return

If I replace the .return access with ['return'] on 4 occurrences it works OK

DataTables documentation on Support says that it should support IE8
Manual suggests IE8 Support for older version
https://datatables.net/manual/
| DataTables 1.10 is compatible with IE6 and newer. The extensions require IE8 or newer.

Download compatibility suggests IE8+ compatibility
https://datatables.net/download/compatibility
| DataTables Core supports IE8+

Answers

  • rf1234rf1234 Posts: 2,990Questions: 87Answers: 421

    Please review IE8 support!
    - Testing with DataTables 1.13.6 with FixedColumns 4.3.0

    According to the docs the above is not supported, I guess. Have you seen this?

    https://datatables.net/download/compatibility

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    edited October 2023

    I think the FixedColumns aspect is a bit of a red herring there - the issue is in DataTables core. IE's JS parser doesn't appear to like the use of a reserved keyword as an object property.

    I'll fix that for the next release of DataTables core 1.13.x since the core should support IE8+.

    FixedColumns does not work with IE however. Also DataTables 2, which is getting closer and closer will not support IE at all.

    @sandis - out of interest, do you need to support IE8 for your site / app? Ouch! It hasn't been updates since 2011 and was EOL in 2016. I hate to think what browsing the web is like with it now!

    Allan

  • sandissandis Posts: 2Questions: 1Answers: 0

    Thanks @allan yes unfortunately I do need to Support IE8 as part of Legacy system because of Legacy ActiveX component dependencies used.

    We don't use IE8 browser per se, but rather Edge IE Mode access for sites.

    The access is configured through Enterprise Site list thus Edge browser knows which sites to open in older IE modes
    https://learn.microsoft.com/en-us/deployedge/edge-ie-mode

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    I feel for you - IE support is not fun!

    Allan

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    Fix committed here. The next patch release for DataTables will carry this change. Expecting to do that tomorrow all being well.

    Allan

Sign In or Register to comment.