fixed mismatched use of nodeName and tagName