'in' operator and feature detection technique...

  • Thread starter Luke Matuszewski
  • Start date
L

Luke Matuszewski

Thomas 'PointedEars' Lahn napisal(a):
I have already said that JavaScript 1.4 (1998/1999) is
implemented server-side only.

Same as JScript 4.0, which was implemented only in commercial
product (not 100% sure but in Visual InterDev / Visual Studio 6.0).

B.R.
Luke Matuszewski
 
V

VK

Luke said:
VK napisal(a):
Correct for IE: JScript 5.0 (Internet Explorer 5.0) supports statements

if ('something' in something)
for Windows

Then i have buggy Windows Internet Explorer implementations and site
<URL:downloads.skyzyx.com> provided buggy/modified standalone microsoft
internet explorers which in those versions they removed 'in' standalone
operator support from theirs Internet Explorer 5 SP2 (JScript
5.1.0.5010) (my tests provided in this post runed on WIE 3 to WIE 6,
and only WIE5.5 and above passed it without errors). On W. IE 5 there
was an error:

<quote>
Line: 16
Char: 11
Error: Expected character ')'
Code: 0
URL: [file://C:\Devel\Apache2\www\funcexpr.htm]
<quote>

which was (in my test htm file):
if("prop" in obj) {
^
|- is line 16, char 11...

Any comments ?

Another bug in MSDN docs then. I must admit that IE 5.x below IE 5.5 is
out of my experience. From IE 4 I moved on IE 5.5 right away.

So the final corrected variant would be:

for (... in...) Statement supported since JavaScript 1.0 / JScript 1.0
in Operator supported since JavaScript 1.5 / JScript 5.5

1) JavaScript versions are going by the Netscape > Mozilla Foundation
table
JavaScript 1.4 is skipped as it is not really correct to talk about a
support of something in something that never was used. It's IMHO, but
you may still mention JavaScript 1.4 for formal correctness.

2) JScript versions are going by the Microsoft table.

In this form the decumentation bug description is shiny perfect and
ready to be reported if you want to :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,698
Latest member
alexxx

Latest Threads

Top