suggestion

Function suggestion 

Source
pub fn suggestion(written: &str) -> Option<&'static str>
Expand description

What an attribute name that does not exist most likely meant.

Three rules in order, and the first is the one that matters most in a language whose keyword arguments are snake_case. ui: turns _ into -, so a program that writes max_length= reaches HTML as max-length — and the attribute is maxlength, with no separator at all. Squashing the hyphens out and looking again catches every attribute of that shape at once — maxlength, tabindex, colspan, autofocus, novalidate, formaction, playsinline — and it is a rule rather than the forty-line table the same coverage would take by hand.