Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document.activeElement not set in WebKit on mouse click #14866

Closed
dilyanpalauzov opened this issue Feb 7, 2022 · 3 comments
Closed

document.activeElement not set in WebKit on mouse click #14866

dilyanpalauzov opened this issue Feb 7, 2022 · 3 comments
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@dilyanpalauzov
Copy link

dilyanpalauzov commented Feb 7, 2022

https://caniuse.com/mdn-api_document_activeelement says document.activeElement is supported by WebKit/Safari.

My exprience shows, that WebKit does not set document.activeElement when clicking by mouse. Firefox and Chrome set document.activeElement when clicking by mouse. All browsers set document.activeElement, when navigating with keyboard.

https://bugs.webkit.org/show_bug.cgi?id=236217 contains details and sample snippet for reproduction.

@queengooborg queengooborg added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Feb 7, 2022
@dilyanpalauzov
Copy link
Author

At https://bugs.webkit.org/show_bug.cgi?id=236217#c5 I asked about the rationale, why does the behaviour of Safari deviate on purpose from the other browsers.

@queengooborg
Copy link
Collaborator

I haven't been able to reproduce the issue on any version of Safari, and we don't currently track data for other (currently-)WebKit-based browsers. The bug's title says [GTK], so I'm assuming this was an issue that only affected GTK-based WebKit browsers.

@queengooborg queengooborg closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@dilyanpalauzov
Copy link
Author

Per https://bugs.webkit.org/show_bug.cgi?id=236217 this is now corrected in GtkWebKit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

2 participants