[jQuery] IE5/arguments.length

[jQuery] IE5/arguments.length

Revisiting these posts from last week, I did some testing because I use
arguments.length in my own code.
That MSDN page is wrong. arguments.length is supported at least as far back
as the IE5 version that shipped with Windows 98, and probably much farther
back than that. Flanagan's book says it was in JavaScript 1.1, JScript 2,
and ECMAScript 1.
It's an easy thing to test, just throw this in a <script> tag and load the
page:
function f() { alert(arguments.length); }
f(9,8,7);
That pops up a nice "3" in Windows 98, IE 5.00.2614.3500.
So whatever the problem was that was being discussed here, it must have been
caused by something other than arguments.length.
-Mike












    • Topic Participants

    • mike