Modify ↓
Ticket #9037 (closed bug: fixed)
$('blah').attr('onclick') return event in Firefox
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.6 |
| Component: | attributes | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$('blah').attr('onclick') return event in Firefox and IE but in chrome they return the attribute.
i thing that in Firefox and IE it should return value of attribute instead of event
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Will consistently return the attribute in jQuery 1.6.