code: function isNamedNode(node, nodeName) {
      return node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();
    }
docs: Check if an Element has a given nodeName, case-insensitively.
  
  @param {Element} node	A DOM Element to inspect the name of.
  @param {String} nodeName	Unnormalized name to compare against.