Now handles tag and attribute ids with uppercase letters.