-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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 global beforexrselect event #15376
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
I don't see XRSession.onbeforexrselect anywhere. Can you elaborate? I think it has always been on GlobalEventHandlers. |
Oh, I misunderstood then. Sorry. |
The target of this event is an |
I believe this is what I should do now given GEH pages are gone. |
This is a PR to discuss how to document events that are defined as
GlobalEventHandlers
.Spec: https://immersive-web.github.io/dom-overlays/#onbeforexrselect
WebIDL:
If we would avoid the
GlobalEventHandlers
mixin, then the specific interfaces for thebeforexrselect
event would beDocument
,Window
,HTMLElement
,MathMLElement
,SVGElement
. I think it makes no sense to create pages under all these interfaces. So, here I'm instead creating a single pagebeforexrselect_event
underGlobalEventHandlers
along with a section on the page called "Event availability". The title of the page is just 'beforexrselect event' without an interface.In BCD, the data would live in
api.GlobalEventHandlers.beforexrselect_event
. See mdn/browser-compat-data#16026