changed .getTagName() syntax