Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14772 closed bug (cantfix)

Can not correctly detect :focus/:active for DIVs with contenteditable in Firefox, Chrome

Reported by: jfn12587@… Owned by:
Priority: low Milestone: 1.11.1/2.1.1
Component: selector Version: 1.11.0-rc1
Keywords: Cc:
Blocked by: Blocking:

Description

Related to ticket #12648, the same issue with :focus appears in Firefox (tested against 26.0) with jQuery 1.8.3, and with :active in 2.1.0. Chrome has similar issues with the latest 1.11.

Change History (2)

comment:1 Changed 6 years ago by dmethvin

Component: unfiledselector
Milestone: None1.11.1/2.1.1
Priority: undecidedlow
Status: newopen

Updated fiddle using 1.x git build: http://jsfiddle.net/YzagR/32/

comment:2 Changed 6 years ago by timmywil

Resolution: cantfix
Status: openclosed

http://jsfiddle.net/timmywil/JXAP2/

This is not something we can fix ourselves. I'm not sure the spec specifies the order of operations for setting the focus element and firing the focus event.

I've opened an issue on Chrome here. Let's see what they say on the specified behavior.

Either way, this is a cantfix. The workaround for now is to match in a setTimeout call, which works in all browsers.

Note: See TracTickets for help on using tickets.