Use nodeName instead of tagName.