Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

wrong detect array length

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 08-19-2009
Max
 

Posts: n/a
wrong detect array length
(javascript)
if create array by:
~~~~~~~~~~~
var arr = [1, 2, 3,];
~~~~~~~~~~~
it will containt 3 elements, but "length"-property will contain number 4,
because the last comma. This is bug. Other browsers ignore it.

Can you fix it?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities...orer. general
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-19-2009
C A Upsdell
 

Posts: n/a
Re: wrong detect array length
Max wrote:
> (javascript)
> if create array by:
> ~~~~~~~~~~~
> var arr = [1, 2, 3,];
> ~~~~~~~~~~~
> it will containt 3 elements, but "length"-property will contain number 4,
> because the last comma. This is bug. Other browsers ignore it.
>
> Can you fix it?


What, you want Microsoft to remove your comma for you? How many more of
your bugs do you want Microsoft to fix?


Reply With Quote
  #3 (permalink)  
Old 09-02-2009
JScott1989
 

Posts: n/a
Re: wrong detect array length
On Aug 19, 4:11*pm, C A Upsdell <""cupsdell\"@nos...@upsdell.com">
wrote:
> Max wrote:
> > (javascript)
> > if create array by:
> > ~~~~~~~~~~~
> > var arr = [1, 2, 3,];
> > ~~~~~~~~~~~
> > it will containt 3 elements, but "length"-property will contain number 4,
> > because the last comma. This is bug. Other browsers ignore it.

>
> > Can you fix it?

>
> What, you want Microsoft to remove your comma for you? *How many more of
> your bugs do you want Microsoft to fix?


That's stupid - having a comma on the end shouldn't create a new array
element

It doesn't do it in other languages (PHP, Python, etc. etc.) and other
browsers implementations of Javascript
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid 1 Array aaivazis microsoft.public.windows.vista.installation setup 2 01-01-2009 17:49
ATTN: Ringmaster Albright, what is wrong with you? Really, Ringmasterwhat went wrong? Junk Yard Dog microsoft.public.windows.vista.general 2 08-17-2008 00:32
Vista Says WEP Key Is Wrong Length kwillcocks@btinternet.com microsoft.public.windows.vista.networking sharing 7 02-07-2008 08:31
Article ID: 926672 The slide show length does not match the song length when you use the "Change slide show length to match music length" option in Windows Vista KBArticles English 0 10-22-2007 20:00
Array Supports Vista, IE7 Paul Security News 0 03-29-2007 16:57




All times are GMT +1. The time now is 22:46.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120