better comments for JS_DOM_EVENT_ATTRS constant

pull/104/head
rhysd 4 years ago
parent 26e89ae6d3
commit 1779f4a374

@ -1,9 +1,9 @@
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/#attributes-3 (table 'List of event handler content attributes')
// Global handlers
// Global event handlers
"onabort",
"onauxclick",
"onblur",
@ -71,7 +71,7 @@ const JS_DOM_EVENT_ATTRS: &[&str] = &[
"onwebkitanimationiteration",
"onwebkitanimationstart",
"onwebkittransitionend",
// body and frameset elements
// Event handlers for <body/> and <frameset/> elements
"onafterprint",
"onbeforeprint",
"onbeforeunload",
@ -88,7 +88,7 @@ const JS_DOM_EVENT_ATTRS: &[&str] = &[
"onstorage",
"onunhandledrejection",
"onunload",
// html element
// Event handlers for <html/> element
"oncut",
"oncopy",
"onpaste",

Loading…
Cancel
Save