@cartok/svg-tag-names
v1.1.2
Published
List of known SVG tag-names
Downloads
4
Readme
svg-tag-names
List of known SVG tag-names. Includes the elements from SVG 1.1, SVG Tiny 1.2, and SVG 2.
The repo contains a script to crawl specs to include newly introduced tag-names.
Installation
npm:
npm install svg-tag-names
Usage
var svgTagNames = require('svg-tag-names')
console.log(svgTagNames.length) // => 101
console.log(svgTagNames.slice(0, 20))
Yields:
[ 'a',
'altGlyph',
'altGlyphDef',
'altGlyphItem',
'animate',
'animateColor',
'animateMotion',
'animateTransform',
'animation',
'audio',
'canvas',
'circle',
'clipPath',
'color-profile',
'cursor',
'defs',
'desc',
'discard',
'ellipse',
'feBlend' ]
API
svgTagNames
Array.<string>
— List of case-sensitive tag-names.
Related
html-tag-names
— List of HTML tagsmathml-tag-names
— List of MathML tagssvg-element-attributes
— Map of SVG elements to allowed attributeshtml-element-attributes
— Map of HTML elements to allowed attributesaria-attributes
— List of ARIA attributes