Opera also has attachEvent, so no.

--John



On Tue, Jan 13, 2009 at 1:06 PM, Ariel Flesler <afles...@gmail.com> wrote:
>
> Isn't this good enough ?
>
> IE = !!document.attachEvent;
>
> On Tue, Jan 13, 2009 at 3:00 PM, kangax <kan...@gmail.com> wrote:
>>
>> On Jan 13, 10:17 am, Diego Perini <diego.per...@gmail.com> wrote:
>>> Kanagax,
>>> agree with you about "using (or not) frames" being irrelevant if the
>>> is objective is met. I was talking about reducing a bit the code size
>>> were possible, feature testing is more costly in byte size.
>>>
>>> Please tell me how a 3d party is going to create problem with those
>>> testing I am really interested into improve them if possible.
>>>
>>> You see, the "document.fileSize" property in IE is read-only, and it
>>> is of a type the user cannot create himself that I know, but would be
>>> very interested in how the user could create a variable of type
>>> "unknown", especially how to I create an "unknown" variable in FF /
>>> Opera / Webkit / Konqueror or mobile web browsers ???
>>
>> Your snippet didn't test for typeof "unknown", but rather for  "!=
>> 'undefined'". Sorry if I missed something. If a 3rd party script
>> defines `document.fileSize` in non-IE browser, your proposed `IE`
>> boolean will have a false positive:
>>
>> // run this in Firefox
>> document.fileSize = 1024;
>> IE = typeof document.fileSize != 'undefined';
>> IE; // true
>>
>> [...]
>>
>> --
>> kangax
>> >
>>
>
>
>
> --
> Ariel Flesler
> http://flesler.blogspot.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to