diff --git a/src/js.rs b/src/js.rs index b2fa07d..b8d9f2d 100644 --- a/src/js.rs +++ b/src/js.rs @@ -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 and elements "onafterprint", "onbeforeprint", "onbeforeunload", @@ -88,7 +88,7 @@ const JS_DOM_EVENT_ATTRS: &[&str] = &[ "onstorage", "onunhandledrejection", "onunload", - // html element + // Event handlers for element "oncut", "oncopy", "onpaste",