1.0.0 • Published 8 years ago
@f/html-namespace v1.0.0
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
1.0.0
8 years ago