On Jan 27, 7:12 am, Diego Perini <[email protected]> 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?

> I have to repeat I like feature testing but sometimes it proves to be
> inadequate for the task

It's not inadequate, just possibly an unsolved challenge :)

> most of the cases are IE related anyway

And in these cases, when feature detection does not work, CC is a
better option than browser sniffing, and _certainly_ better than
feature inference (like checking document.fileSize and making other
assumptions about the browser based on that property).

Matt Kruse

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to