Skip to main content

Bug Tracker

Side navigation

#14772 closed bug (cantfix)

Opened February 07, 2014 07:59PM UTC

Closed March 31, 2014 04:45PM UTC

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

Reported by: jfn12587@gmail.com 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.

Attachments (0)
Change History (2)

Changed March 20, 2014 07:07PM UTC by dmethvin comment:1

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/

Changed March 31, 2014 04:45PM UTC by timmywil comment:2

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.