better comments for JS_DOM_EVENT_ATTRS constant
This commit is contained in:
parent
26e89ae6d3
commit
1779f4a374
@ -1,9 +1,9 @@
|
|||||||
const JS_DOM_EVENT_ATTRS: &[&str] = &[
|
const JS_DOM_EVENT_ATTRS: &[&str] = &[
|
||||||
// From WhatWG HTML spec 8.1.5.2 Event handlers on elements, Document objects, and Window objects:
|
// From WHATWG HTML spec 8.1.5.2 'Event handlers on elements, Document objects, and Window objects':
|
||||||
// https://html.spec.whatwg.org/#event-handlers-on-elements,-document-objects,-and-window-objects
|
// https://html.spec.whatwg.org/#event-handlers-on-elements,-document-objects,-and-window-objects
|
||||||
// https://html.spec.whatwg.org/#attributes-3 (table 'List of event handler content attributes')
|
// https://html.spec.whatwg.org/#attributes-3 (table 'List of event handler content attributes')
|
||||||
|
|
||||||
// Global handlers
|
// Global event handlers
|
||||||
"onabort",
|
"onabort",
|
||||||
"onauxclick",
|
"onauxclick",
|
||||||
"onblur",
|
"onblur",
|
||||||
@ -71,7 +71,7 @@ const JS_DOM_EVENT_ATTRS: &[&str] = &[
|
|||||||
"onwebkitanimationiteration",
|
"onwebkitanimationiteration",
|
||||||
"onwebkitanimationstart",
|
"onwebkitanimationstart",
|
||||||
"onwebkittransitionend",
|
"onwebkittransitionend",
|
||||||
// body and frameset elements
|
// Event handlers for <body/> and <frameset/> elements
|
||||||
"onafterprint",
|
"onafterprint",
|
||||||
"onbeforeprint",
|
"onbeforeprint",
|
||||||
"onbeforeunload",
|
"onbeforeunload",
|
||||||
@ -88,7 +88,7 @@ const JS_DOM_EVENT_ATTRS: &[&str] = &[
|
|||||||
"onstorage",
|
"onstorage",
|
||||||
"onunhandledrejection",
|
"onunhandledrejection",
|
||||||
"onunload",
|
"onunload",
|
||||||
// html element
|
// Event handlers for <html/> element
|
||||||
"oncut",
|
"oncut",
|
||||||
"oncopy",
|
"oncopy",
|
||||||
"onpaste",
|
"onpaste",
|
||||||
|
Loading…
Reference in New Issue
Block a user