changed tagName to nodeName for reasons