Added attribute lax parsing and syntax error message.