Ticket #1617 (closed bug: worksforme)
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: | |
| Blocking: | Blocked by: |
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
Change History
comment:2 Changed 6 years ago by davidserduke
I was unable to reproduce this bug in 1.2.1 in IE6/7 or FF2. Fixed?
comment:3 Changed 5 years ago by davidserduke
- Status changed from new to closed
- Resolution set to worksforme
- Milestone changed from 1.2.1 to 1.2.2
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

