getTagName = (node) => {
  if (!(node instanceof HTMLElement)) {
    throw new Error('Expected HTMLElement as argument')
  }
  return node.tagName.toLowerCase()
}
Gets the tagname of an element
@param {HTMLElement} node Element