Re: [w3c/gamepad] Add global event handler attributes (#144)

@saschanaz commented on this pull request.



> @@ -798,13 +798,29 @@ <h3>
         button.</i>
       </p>
     </section>
-    <section id="permission-policy" data-cite="Feature-Policy">
+    <section>
+      <h2>
+        Extensions to the <code>WindowEventHandlers</code> Interface Mixin
+      </h2>
+      <p>
+        This specification extends the {{WindowEventHandlers}} interface mixin
+        from HTML to add [=event handler IDL attributes=] to facilitate the
+        event handler registration.
+      </p>
+      <pre class="idl">
+        partial interface mixin WindowEventHandlers {

Checked some precedents and it seems anything using `partial interface Window` for adding event handlers are deprecated. (from https://w3c.github.io/deviceorientation/#idl-index, WebVR and some obsolete specs). Doing `WindowEventHandlers` also allows `<body ongamepadconnected="">` which is probably a good thing.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/144#discussion_r595021099

Received on Tuesday, 16 March 2021 10:03:54 UTC