Skip to main content

Bug Tracker

Side navigation

#871 closed enhancement (wontfix)

Opened January 23, 2007 05:25PM UTC

Closed July 15, 2007 03:02PM UTC

isArray

Reported by: john Owned by:
Priority: minor Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Test for items that are array-like, some test to consider

[0,1]
{ "0": 0, "1", 1, length: 2 }
document.body.childNodes
document.getElementsByTagName("body")
document.getElementsByTagName("form")[0] // should fail
document.getElementsByTagName("form")[0].elements
$("body")
"some string" // should fail
Attachments (0)
Change History (2)

Changed March 24, 2007 04:59PM UTC by john comment:1

type: bugenhancement

Changed July 15, 2007 03:02PM UTC by john comment:2

description: Test for items that are array-like, some test to consider\ {{{\ [0,1]\ { "0": 0, "1", 1, length: 2 }\ document.body.childNodes\ document.getElementsByTagName("body")\ document.getElementsByTagName("form")[0] // should fail\ document.getElementsByTagName("form")[0].elements\ $("body")\ "some string" // should fail\ }}}Test for items that are array-like, some test to consider \ {{{ \ [0,1] \ { "0": 0, "1", 1, length: 2 } \ document.body.childNodes \ document.getElementsByTagName("body") \ document.getElementsByTagName("form")[0] // should fail \ document.getElementsByTagName("form")[0].elements \ $("body") \ "some string" // should fail \ }}}
need: → Review
resolution: → wontfix
status: newclosed