Another bug where I checked for nodeName instead of localName