dist/morphdom-esm.js
function compareNodeNames(fromEl, toEl) {
    var fromNodeName = fromEl.nodeName;
    var toNodeName = toEl.nodeName;

    if (fromNodeName === toNodeName) {
        return true;
    }

    if (toEl.actualize &&
        fromNodeName.charCodeAt(0) < 91 && /* from tag name is upper case */
        toNodeName.charCodeAt(0) > 90 /* target tag name is lower case */) {
        // If the target element is a virtual DOM node then we may need to normalize the tag name
        // before comparing. Normal HTML elements that are in the "http://www.w3.org/1999/xhtml"
        // are converted to upper case
        return fromNodeName === toNodeName.toUpperCase();
    } else {
        return false;
    }
}
function compareNodeNames(fromEl, toEl) {
    var fromNodeName = fromEl.nodeName;
    var toNodeName = toEl.nodeName;

    if (fromNodeName === toNodeName) {
        return true;
    }

    if (toEl.actualize &&
        fromNodeName.charCodeAt(0) < 91 && /* from tag name is upper case */
        toNodeName.charCodeAt(0) > 90 /* target tag name is lower case */) {
        // If the target element is a virtual DOM node then we may need to normalize the tag name
        // before comparing. Normal HTML elements that are in the "http://www.w3.org/1999/xhtml"
        // are converted to upper case
        return fromNodeName === toNodeName.toUpperCase();
    } else {
        return false;
    }
}
function compareNodeNames ( fromEl , toEl ) { var fromNodeName = fromEl . nodeName ; var toNodeName = toEl . nodeName ; if ( fromNodeName === toNodeName ) { return true ; } if ( toEl . actualize && fromNodeName . charCodeAt ( 0 ) < 91 && /* from tag name is upper case */ toNodeName . charCodeAt ( 0 ) > 90 /* target tag name is lower case */ ) { // If the target element is a virtual DOM node then we may need to normalize the tag name // before comparing. Normal HTML elements that are in the "http://www.w3.org/1999/xhtml" // are converted to upper case return fromNodeName === toNodeName . toUpperCase ( ) ; } else { return false ; } }
Returns true if two node's names are the same.

NOTE: We don't bother checking `namespaceURI` because you will never find two HTML elements with the same
nodeName and different namespace URIs.

@param {Element} a
@param {Element} b The target element
@return {boolean}
Returns true if two node s names are the same .