
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
html-event-attributes
Advanced tools
List of HTML event handler attributes.
This is a list of all HTML event handlers (onclick
, etc).
It includes events from HTML 4 and HTML (the living standard).
You can use this package if you want to figure out whether an HTML attribute is a known event handler.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install html-event-attributes
In Deno with esm.sh
:
import {htmlEventAttributes} from 'https://esm.sh/html-event-attributes@2'
In browsers with esm.sh
:
<script type="module">
import {htmlEventAttributes} from 'https://esm.sh/html-event-attributes@2?bundle'
</script>
import {htmlEventAttributes} from 'html-event-attributes'
console.log(htmlEventAttributes.slice(0, 10))
Yields:
[
'onabort',
'onafterprint',
'onauxclick',
'onbeforeprint',
'onbeforeunload',
'onblur',
'oncancel',
'oncanplay',
'oncanplaythrough',
'onchange'
]
This package exports the identifier htmlEventAttributes
.
There is no default export.
htmlEventAttributes
List of HTML event handler attributes (Array<string>
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/svg-event-attributes
— list of SVG event attributeswooorm/html-element-attributes
— map of HTML elements to attributeswooorm/svg-element-attributes
— map of SVG elements to attributeswooorm/aria-attributes
— list of ARIA attributesYes please! See How to Contribute to Open Source.
FAQs
List of HTML event handler attributes
The npm package html-event-attributes receives a total of 22 weekly downloads. As such, html-event-attributes popularity was classified as not popular.
We found that html-event-attributes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.