jquery / jquery/sizzle

`:focus` selector inconsistent in Edge Legacy

Open
#424 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Has a jQuery counterpart
Dominant language
JavaScript
Stars
6.3k
Forks
927
PR merge metrics
No merged PRs in 30d

Description

Migrated from https://github.com/jquery/jquery/issues/4109

Test case: https://jsfiddle.net/63zby1nt/

Seems like maybe the process the of checking for focus in Edge causes the input to lose focus. More thorough analysis is available in the comments on the jQuery issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the test case at https://jsfiddle.net/63zby1nt/ and review the linked jQuery issue comments for the reported Edge Legacy behavior. Investigate how the :focus selector is checked in this browser and verify that the input does not lose focus while selector results are evaluated. Done means the test case behaves consistently in Edge Legacy without regressing other selector behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.