is-interactive-element
v2.0.1
Published
Checks if an element is an interactive element according to the WHATWG spec
Downloads
2
Readme
isInteractiveElement
isInteractiveElement checks if a DOM element is an interactive element or not.
Installation
isInteractiveElement can be installed using npm:
$ npm install [--save] is-interactive-element
Example usage
if (isInteractiveElement(document.createElement('button'))) {
// do something you should only do with interactive elements
}