Update the list of global and window event handlers (#36894)

There's an expanded list of event handlers content attributes that need
to be forwarded to the corresponding window of the body element, and
this PR adds the remaining ones. The full list can be seen in [this
link](https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers-on-elements%2C-document-objects%2C-and-window-objects%3Aevent-handlers-6).

Testing: Covered by various WPT tests

---------

Signed-off-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
Keith Yeung 2025-05-10 23:54:13 +08:00 committed by GitHub
parent d725fb3728
commit da1c49299b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 123 additions and 1013 deletions

View file

@ -11,9 +11,6 @@
[onauxclick: the default value must be null]
expected: FAIL
[onauxclick: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onblur: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
@ -62,9 +59,6 @@
[oncontextlost: the default value must be null]
expected: FAIL
[oncontextlost: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[oncontextmenu: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
@ -77,9 +71,6 @@
[oncontextrestored: the default value must be null]
expected: FAIL
[oncontextrestored: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[oncuechange: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
@ -338,9 +329,6 @@
[onslotchange: the default value must be null]
expected: FAIL
[onslotchange: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onstalled: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
@ -389,9 +377,6 @@
[onwebkitanimationend: the default value must be null]
expected: FAIL
[onwebkitanimationend: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onwebkitanimationend: the content attribute must execute when an event is dispatched]
expected: FAIL
@ -401,9 +386,6 @@
[onwebkitanimationiteration: the default value must be null]
expected: FAIL
[onwebkitanimationiteration: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onwebkitanimationiteration: the content attribute must execute when an event is dispatched]
expected: FAIL
@ -413,9 +395,6 @@
[onwebkitanimationstart: the default value must be null]
expected: FAIL
[onwebkitanimationstart: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onwebkitanimationstart: the content attribute must execute when an event is dispatched]
expected: FAIL
@ -425,9 +404,6 @@
[onwebkittransitionend: the default value must be null]
expected: FAIL
[onwebkittransitionend: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onwebkittransitionend: the content attribute must execute when an event is dispatched]
expected: FAIL
@ -443,27 +419,18 @@
[onbeforeinput: the default value must be null]
expected: FAIL
[onbeforeinput: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onbeforematch: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
[onbeforematch: the default value must be null]
expected: FAIL
[onbeforematch: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onscrollend: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
[onscrollend: the default value must be null]
expected: FAIL
[onscrollend: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[oncopy: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
@ -488,33 +455,6 @@
[onbeforetoggle: the default value must be null]
expected: FAIL
[onbeforetoggle: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[onauxclick: dispatching an Event at a <meta> element must trigger element.onauxclick]
expected: FAIL
[onbeforeinput: dispatching an Event at a <meta> element must trigger element.onbeforeinput]
expected: FAIL
[onbeforematch: dispatching an Event at a <meta> element must trigger element.onbeforematch]
expected: FAIL
[onbeforetoggle: dispatching an Event at a <meta> element must trigger element.onbeforetoggle]
expected: FAIL
[oncontextlost: dispatching an Event at a <meta> element must trigger element.oncontextlost]
expected: FAIL
[oncontextrestored: dispatching an Event at a <meta> element must trigger element.oncontextrestored]
expected: FAIL
[onscrollend: dispatching an Event at a <meta> element must trigger element.onscrollend]
expected: FAIL
[onslotchange: dispatching an Event at a <meta> element must trigger element.onslotchange]
expected: FAIL
[onwebkitanimationend: dispatching an Event at a <meta> element must trigger element.onwebkitanimationend]
expected: FAIL
@ -532,9 +472,3 @@
[oncommand: the default value must be null]
expected: FAIL
[oncommand: the content attribute must be compiled into a function as the corresponding property]
expected: FAIL
[oncommand: dispatching an Event at a <meta> element must trigger element.oncommand]
expected: FAIL