This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
void-elements with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Object of "void element" node names as defined by the HTML spec.
The list is programatically generated from the latest W3C HTML draft.
var voidElements = require('void-elements'); assert(!voidElements['span'], '<span> is not a void element'); assert(voidElements['img'], '<img> is a void element');