views:

74

answers:

3

Hey is there a jslint-like inspector that will flag on calls that are incompatible with older versions of IE? or just cross browser incompatible calls in general?

+1  A: 

Use a cross browser library like MooTools. It automatically adds missing methods for IE, also makes writing javascript easier.

letronje
I use cross browser libraries, I just accidently do stuff like Array.isArray().
Rixius
which cross-browser library are you using ?
letronje
I primarily use jQuery.
Rixius
+2  A: 

You could use the closure compiler with a custom externs file which doesn't define any of the things missing in IE from the compatibility table of your choice (the kangax one linked above, or you could use one from quirksmode).

Annie
A: 

The WTP project for eclipse allows you to select different browser support javascript packages for JS projects. It certainly supplies completion only for the items actually in the different browsers, but I'm not sure if it flags other usage as errors.

Adam