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
2010-09-08 07:50:13
I use cross browser libraries, I just accidently do stuff like Array.isArray().
Rixius
2010-09-08 09:12:43
which cross-browser library are you using ?
letronje
2010-09-08 09:59:32
I primarily use jQuery.
Rixius
2010-09-10 15:45:26
+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
2010-09-08 21:04:55
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
2010-09-09 16:59:58