Bug Tracker

Modify

Ticket #4603 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

selector :last has incorrect behaviour on google chrome

Reported by: thomas Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

see the attached file:

version 1: correct id var nb=$("#elementview .selected").size()-1; var id= $("#elementview .selected").eq(nb).attr("id");

version2 incorrect id (Always the first one!) id= $("#elementview .selected:last").attr("id");

Attachments

testChromeJquery.html Download (1.6 KB) - added by thomas 5 years ago.

Change History

Changed 5 years ago by thomas

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

Works fine for me with jQuery 1.4.2 and Chrome 5, despite the fact that the id values are invalid. (The W3C says id attributes cannot be all numeric.)

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.