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
The "onvrdisplayconnect" attribute's value would typically be an event listener's callback for the event of type "vrdisplayconnect", not "onvrdisplayconnect". Consequently, you would expect to use addEventListener("vrdisplayconnect", cb).
I believe this naming scheme is well established, so I am puzzled why webvr would deviate ? Unless I miss something ?
Does the event type name indeed include the "on" prefix for webvr ?
It may be necessary to explicitly define event type names or/and a mapping from event handler attribute names to event type names.
The text was updated successfully, but these errors were encountered:
You are correct in calling this out. The IDL should use EventTarget. And we did some proposed interface changes to make the WebVR APIs work in a worker. See issue #152 and @Tojiro's PR: #116
https://w3c.github.io/webvr/#interface-window
sensibly defines attribute names for various vr related events.
In the explanation of the attribute names, the language seems to equate the attribute name with the event type name.
However, event type names generally do not include the "on" prefix:
https://www.w3.org/TR/html51/webappapis.html#event-handlers-on-elements-document-objects-and-window-objects
The "onvrdisplayconnect" attribute's value would typically be an event listener's callback for the event of type "vrdisplayconnect", not "onvrdisplayconnect". Consequently, you would expect to use addEventListener("vrdisplayconnect", cb).
I believe this naming scheme is well established, so I am puzzled why webvr would deviate ? Unless I miss something ?
Does the event type name indeed include the "on" prefix for webvr ?
It may be necessary to explicitly define event type names or/and a mapping from event handler attribute names to event type names.
The text was updated successfully, but these errors were encountered: