Modify ↓
Ticket #8386 (closed bug: duplicate)
Problem with :focus selector
| Reported by: | songofchrist@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
No problems in Mozilla based browsers, but particularly in IE 6, this selector fails. For example, if I wanted to remove focus from the item currently having focus I might use the following:
$('input:focus').blur();
This works as expected in Chrome, but in IE produces the error:
'undefined' is null or not an object
Not sure of a simple workaround, so hopefully this can be fixed easily enough. Any ideas?
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.
