Skip to content

micro-js/html-namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-namespace

Build status Git tag NPM version Code style

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published