Ticket #12123 (closed bug: invalid)
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: | ||
| Blocking: | Blocked by: |
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?
Change History
comment:2 Changed 10 months ago by dmethvin
- Owner set to lihan
- Status changed from new to pending
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?
comment:3 Changed 10 months ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
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!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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