From 1779f4a374773e04d3cdf9e916216bda206d7926 Mon Sep 17 00:00:00 2001
From: rhysd
Date: Wed, 15 Jan 2020 14:33:27 +0900
Subject: [PATCH] better comments for JS_DOM_EVENT_ATTRS constant
---
src/js.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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