Opened 14 years ago
Closed 13 years ago
#4603 closed bug (worksforme)
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: | ||
Blocked by: | Blocking: |
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 (1)
Change History (2)
Changed 14 years ago by
Attachment: | testChromeJquery.html added |
---|
comment:1 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.)