On Jan 13, 10:17 am, Diego Perini <[email protected]> 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
--~--~---------~--~----~------------~-------~--~----~
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