🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Mar 26, 2023

Summary

In IE 9 accessing document.activeElement may throw; see https://bugs.jquery.com/ticket/13393. We've already guarded against this in event code but not in selector.

Due to gzip magic, this is +0 bytes.

Checklist

  • New tests have been added to show the fix or feature works
  • Grunt build and unit tests pass locally with these changes
  • If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com

In IE 9 accessing `document.activeElement` may throw; see
https://bugs.jquery.com/ticket/13393. We've already guarded
against this in event code but not in selector.
@mgol mgol added Selector Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Mar 26, 2023
@mgol mgol self-assigned this Mar 26, 2023
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending comment explaining the different document vs event

@mgol mgol merged commit 3936cf3 into jquery:3.x-stable Mar 27, 2023
@mgol mgol deleted the safe-active-element branch March 27, 2023 19:48
@mgol mgol added this to the 3.7.0 milestone Mar 27, 2023
@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Mar 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

3 participants