-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Combine selection events under GlobalEventHandlers #16029
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Okay, so I guess whenever a specific interface's compat data differs from the data we have in So, in addition to we also want |
Having them together sounds good, but I think "whenever a specific interface's compat data differs" should be "always" or machines will get zero data for those interfaces. (And having zero data typically means no support, which makes no sense) |
Okay, but what would "always" imply exactly? The list of interfaces is quite long as As a start it would be all of these: And then the two we identified only through the different compat data: How would I programmatically detect where I need to have compat data entries? |
Perhaps there should be a script that checks the IDL? |
Hm yes, I can see how that's doable to go through all of the inheritance. Is it practical for BCD, though? I mean it would be a lot of places where we would record compat data and |
GlobalEventHandlers itself is not very practical to be fair. As current BCD items are IDL machine readable in some ways, I think it's practical to leave it as is. |
I reverted the changes for HTMLInputElement and HTMLTextAreaElement. (Not sure this brings me any further to come to a general rule for how to treat events that come from |
In mdn/content#15385 (comment) @foolip proposes yet another way.
If I understand Philip correctly, the proposal would be to have (and nothing in api.GlobalEventHandlers) |
This pull request has merge conflicts that must be resolved before we can merge this. |
I think |
Manual testing with https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=10319 confirms the "selectionchange" event on |
Hah, this is amusing, none other than @saschanaz implemented this in Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1677253 |
Yeah it's weird, Chrome "supports" selectionchange within textarea but fires it at document, not at each element. |
Wait, sorry, it does actually (via |
Thanks @Elchi3! However, we ended up deciding to demix |
Companion PR for mdn/content#15385
Let me know if this approach makes sense at all.