From 045b5c2a23087926a6aaa62958c338c81c7781e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Mon, 11 Jul 2022 13:53:09 +0200 Subject: [PATCH] Move oncopy/oncut/onpaste to GlobalEventHandlers Fixes https://github.com/whatwg/html/issues/8053. --- source | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) diff --git a/source b/source index d19f245ffd9..301478f26b3 100644 --- a/source +++ b/source @@ -10098,8 +10098,7 @@ partial interface Document { // also has obsolete members }; -Document includes GlobalEventHandlers; -Document includes DocumentAndElementEventHandlers; +Document includes GlobalEventHandlers;

Each Document has a policy container (a policy container), initially a new policy @@ -11127,7 +11126,6 @@ interface HTMLElement : Element { }; HTMLElement includes GlobalEventHandlers; -HTMLElement includes DocumentAndElementEventHandlers; HTMLElement includes ElementContentEditable; HTMLElement includes HTMLOrSVGElement; @@ -101122,7 +101120,9 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl oncontextlost contextlost oncontextmenu contextmenu oncontextrestored contextrestored + oncopy copy oncuechange cuechange + oncut cut ondblclick dblclick ondrag drag ondragend dragend @@ -101150,6 +101150,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl onmouseout mouseout onmouseover mouseover onmouseup mouseup + onpaste paste onpause pause onplay play onplaying playing @@ -101176,8 +101177,6 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl - - @@ -101250,26 +101249,6 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl


-

The following are the event handlers (and their corresponding event handler event types) that must be - supported by all HTML elements, as both event handler content attributes - and event handler IDL attributes; and that must be - supported by all Document objects, as event handler IDL attributes:

- - - - -
Event handler Event handler event type -
oncut cut -
oncopy copy -
onpaste paste -
- -

This list of event handlers is reified as event handler IDL - attributes through the DocumentAndElementEventHandlers interface mixin.

- -
-

The following are the event handlers (and their corresponding event handler event types) that must be supported on Document objects as event handler IDL attributes:

@@ -101310,7 +101289,9 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl attribute EventHandler oncontextlost; attribute EventHandler oncontextmenu; attribute EventHandler oncontextrestored; + attribute EventHandler oncopy; attribute EventHandler oncuechange; + attribute EventHandler oncut; attribute EventHandler ondblclick; attribute EventHandler ondrag; attribute EventHandler ondragend; @@ -101341,6 +101322,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl attribute EventHandler onmouseout; attribute EventHandler onmouseover; attribute EventHandler onmouseup; + attribute EventHandler onpaste; attribute EventHandler onpause; attribute EventHandler onplay; attribute EventHandler onplaying; @@ -101386,12 +101368,6 @@ interface mixin WindowEventHandlers { attribute EventHandler onstorage; attribute EventHandler onunhandledrejection; attribute EventHandler onunload; -}; - -interface mixin DocumentAndElementEventHandlers { - attribute EventHandler oncopy; - attribute EventHandler oncut; - attribute EventHandler onpaste; };
Event firing