You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
IE9 and IE10 actually have native support for text selection events as a "select" event, not to be confused with the "select" events associated with textual form fields). It would be nice to leverage this native event rather than jerry-rigging together, although that also implies that a first-run test must be added/simulated to determine if such an event is supported.
Be forewarned that this native event may prove to be unsatisfactory as my initial testing with IE9 and PPK's "select" event test page suggests that the event only fires at the document and window levels rather than on more deeply nested elements. This is in disagreement with PPK's "select" event compatibility table, so additional testing will be needed to determine the actual status.
Alternatively, given that IE9+ supports this natively, this could theoretically be built into jQuery core as an event fixHook. However, I don't believe this approach will actually be possible as I think the fixHooks are only applied to existing native events in order to standardize/normalize their behaviors; browsers other than IE9+ do not offer such an event to fix. Discuss this possibility further with @dmethvin.