package
Map of HTML and SVG event attributes.
npm install event-attributesGitHub-flavored package documentation.
Across all versions, last 30 days.
542 in 30 days
Runtime metadata.
Tagged topics.
Map of HTML and SVG event attributes.
Type this at the command line:
npm install event-attributes --save-devvar eventAttributes = require("event-attributes");
if (eventAttributes.html["onclick"] === true) {
// is an html event attribute
}
if (eventAttributes.svg["onrepeat"] === true) {
// is an svg event attribute
}Accessible via define() or window.eventAttributes.