HTML void elements are not the only self-closing tags. This includes common SVG self-closing elements as well.
HTML void elements are not the only self-closing tags. This includes common SVG self-closing elements as well.
Please consider following this project’s author, Jon Schlinkert, and consider starring the project to show your and support.
Install with npm:
$ npm install --save self-closing-tags
Please create an issue or do a pull request to add addtional SVG self-closing elements, thanks!
var selfClosingTags = require('self-closing-tags');
Void elements only
var voidElements = require('self-closing-tags').voidElements;
SVG self-closing elements only
var svgElements = require('self-closing-tags').svgElements;
sh
$ npm install && npm test
sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
You might also be interested in these projects:
Jon Schlinkert
Copyright © 2017, Jon Schlinkert.
Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on October 30, 2017.