The forms documentation needs to be updated to discourage the use of input type="number". Also, add the updated HTML spec on autocomplete.
Because there are so many usability and accessibility problems when using <input type="number">
, we recommend using <input type="text" inputmode="numeric" pattern="[0-9]*">
instead.
Gov.uk has a good article on this if you'd like to read more: Why the GOV.UK Design System team changed the input type for numbers.
Scott O'Hara recommends this site for updated HTML info: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete