On Jan 27, 11:34 am, Matt <m...@thekrusefamily.com> wrote: > On Jan 27, 7:12 am, Diego Perini <diego.per...@gmail.com> wrote: > > > I just wrote in another thread that there are cases where I prefer to > > use the following: > > var IE = typeof document.fileSize !== 'undefined', // IE6, IE7 or IE8 > > as a general boolean to detect any IE version > > Is that really a good test? Do you know for a fact that no other > browser has document.fileSize defined, and never will? And are using > this test to apply fixes for features completely unrelated to > document.fileSize?
No need to look for other browsers - one form element with `fileSize` name attribute is enough to bring this test to its knees ;) IIRC, Diego didn't agree with me about weak nature of this check. -- kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---