Bug Tracker

Modify

Ticket #1617 (closed bug: worksforme)

Opened 6 years ago

Last modified 5 years ago

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

jquery_test.html Download (899 bytes) - added by davidserduke 5 years ago.
test case

Change History

comment:1 Changed 6 years ago by john

  • Owner set to brandon

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?

Changed 5 years ago by davidserduke

test case

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.