compare tagName in lowercase