2.2.26 [HTML5:2014] Section 188.8.131.52 Limiting user input length: the maxlength attribute
C0041: A negative maxlength value is treated as if it were 0
The specification states:
... Limiting user input length: the maxlength attribute ... If an element has its form control maxlength attribute specified, the attribute's value must be a valid non-negative integer. If the attribute is specified and applying the rules for parsing non-negative integers to its value results in a number, then that number is the element's maximum allowed value length. If the attribute is omitted or parsing its value results in an error, then there is no maximum allowed value length.
All document modes (All versions)
maxlength value is
treated as if it were 0. No characters are accepted.