split error case into bad attr.name or unclosed tag
Merge pull request #321 from Pomax/bug948223

split error case into bad attr.name or unclosed tag