Handle missing/excess html attributes