]> source.dussan.org Git - jquery.git/commit
Selector: Wrap activeElement access in try-catch
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 27 Mar 2023 19:48:38 +0000 (21:48 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2023 19:48:38 +0000 (21:48 +0200)
commit3936cf3ef355a556d7990c77bbcacb69208fa4ed
tree5a4e7b333b1c5eccbb71210fb3b03de52c0454f3
parent754108fbbf449b8d9736c6259551be538055a60a
Selector: Wrap activeElement access in try-catch

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.

Closes gh-5229
src/selector.js