src/match.js
function checkTag (element, ignore, path, parent = element.parentNode) {
  const pattern = findTagPattern(element, ignore)
  if (pattern) {
    const matches = parent.getElementsByTagName(pattern)
    if (matches.length === 1) {
      path.unshift(pattern)
      return true
    }
  }
  return false
}
function checkTag (element, ignore, path, parent = element.parentNode) {
  const pattern = findTagPattern(element, ignore)
  if (pattern) {
    const matches = parent.getElementsByTagName(pattern)
    if (matches.length === 1) {
      path.unshift(pattern)
      return true
    }
  }
  return false
}
function checkTag ( element , ignore , path , parent = element . parentNode ) { const pattern = findTagPattern ( element , ignore ) if ( pattern ) { const matches = parent . getElementsByTagName ( pattern ) if ( matches . length === 1 ) { path . unshift ( pattern ) return true } } return false }
Extend path with tag identifier

@param  {HTMLElement}    element - [description]
@param  {Object}         ignore  - [description]
@param  {Array.<string>} path    - [description]
@param  {HTMLElement}    parent  - [description]
@return {boolean}                - [description]
Extend path with tag identifier