@ryanmorr/is-element-supported

0.2.0 • Public • Published

isElementSupported

Version Badge License Build Status

Feature test HTML element support

Install

Download the CJS, ESM, UMD versions or install via NPM:

npm install @ryanmorr/is-element-supported

Usage

Detect support for an HTML element by providing the tag name:

import isElementSupported from '@ryanmorr/is-element-supported';

// Feature test a known supported element
isElementSupported('div'); //=> true

// Feature test an unsupported element
isElementSupported('foo'); //=> false

Note: SVG and MathML tags are not supported.

License

This project is dedicated to the public domain as described by the Unlicense.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.01
0.1.00

Package Sidebar

Install

npm i @ryanmorr/is-element-supported

Weekly Downloads

1

Version

0.2.0

License

Unlicense

Unpacked Size

4.5 kB

Total Files

6

Last publish

Collaborators

  • ryanmorr