Skip to content

ryanmorr/is-element-supported

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

isElementSupported

Version Badge Build Status License

Feature test HTML element support

Install

Download the development or minified version, or install via NPM:

npm install @ryanmorr/is-element-supported

Usage

To use the method, simply provide a string of an HTML 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

License

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