@f/html-namespace
1.0.0 • Public • Published
html-namespace

HTML element namespace URI
Installation
$ npm install @f/html-namespace
Usage
var htmlNs = require('@f/html-namespace')
var svgNs = require('@f/svg-namespace')
function elementType (node) {
switch (node.namespaceURI) {
case htmlNs:
return 'html'
case svgNs:
return 'svg'
}
}
License
MIT
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads