Bug 12290 - Gracefully handle errors in datatables.js
Summary: Gracefully handle errors in datatables.js
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-20 01:57 UTC by David Cook
Modified: 2018-12-03 20:04 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2014-05-20 01:57:22 UTC
Datatables.js creates a few errors when using IE 8, as the String method "trim()" isn't supported, and IE 8 throws fatal errors when trying to use a property or a method on a null object.

It's easy enough to check support for "trim()" and just not use it if it's unavailable.

It's also easy enough to check for the existence of a variable before using a property or method.

Patch coming soon...
Comment 1 Owen Leonard 2018-02-12 17:59:09 UTC
IE 8 is too old to support.