Bug Tracker

Modify

Ticket #8386 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by dmethvin

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

comment:2 Changed 2 years ago by dmethvin

Duplicate of #8105.

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.