Skip to main content

Bug Tracker

Side navigation

#12123 closed bug (invalid)

Opened July 23, 2012 07:01AM UTC

Closed August 08, 2012 08:33AM UTC

Inconsistent number of in-focus elements across different browsers

Reported by: lihan Owned by: lihan
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

Have already created a test page

http://jsfiddle.net/MMJSP/

In Chrome/FF, when you open the page, you can see there is no current focused element which is expected.

But in IE8/9, you will see there is 1 focused element which is not expected. Furthermore, if you click on the text "Number of focus", you will see the focused element has been moved to 'BODY' element.

Is there a reason for this? Or it's a bug?

Attachments (0)
Change History (3)

Changed July 23, 2012 07:07AM UTC by lihan comment:1

Please use http://jsfiddle.net/MMJSP/1/ instead.

Changed July 24, 2012 08:17PM UTC by dmethvin comment:2

owner: → lihan
status: newpending

On browsers that don't support the CSS :focus selector we use document.activeElement to get the focused element. The two don't always agree but I don't think we can determine those cases. If you don't expect the body to be focused in your application, can you just ignore that?

http://jsfiddle.net/MMJSP/4/

Changed August 08, 2012 08:33AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!