The complete list of the IE7 / IE8 bugs, including JS interpretation flaws can be found here:
- IE will raise an error if the “comma” symbol exists after the last element of an array.
Example:var array = ["elem1", "elem2", "elem3",]
Solution: Remove the comma after the last element and let the browser be happy.
Example:const varname1 = value1;
Description: const is a Mozilla-specific extension, it is not supported by IE. However Firefox 2, Safari 2, Opera 9.2x, NS 6.2, Galeon 2, Epiphany 2 all pass this test.
Solution: Replace the const keyword with var.