Skip to main content

Bug Tracker

Side navigation

#1617 closed bug (worksforme)

Opened September 14, 2007 12:09PM UTC

Closed November 28, 2007 05:44AM UTC

Size and Length doesn't work

Reported by: suduj Owned by: brandon
Priority: major Milestone: 1.2.2
Component: core Version: 1.2
Keywords: size, length Cc:
Blocked by: Blocking:
Description

Size() and length count wrong number of rows after cloning row in table.

If table have 3 rows before cloning, size() or length shows 3 rows after cloning 1 row.

$("#tableid tbody tr:eq(2)").clone().insertAfter("#tableid tbody tr:eq(0)");

alert('Size:' + $("#tableid tbody tr").size() + ', Length:' + $("#tableid tbody tr").length);

Previous version of jQuery shown 4 rows.

Attachments (1)
  • jquery_test.html (0.9 KB) - added by davidserduke November 28, 2007 05:43AM UTC.

    test case

Change History (3)

Changed September 15, 2007 12:07AM UTC by john comment:1

owner: → brandon

Changed September 27, 2007 09:21PM UTC by davidserduke comment:2

I was unable to reproduce this bug in 1.2.1 in IE6/7 or FF2. Fixed?

Changed November 28, 2007 05:44AM UTC by davidserduke comment:3

milestone: 1.2.11.2.2
resolution: → worksforme
status: newclosed

I was unable to reproduce it in Opera or Safari either with the above test case that I built based on the description. If you can make a test case that reproduces this bug please do so and reopen it.