Speaking of HTML 4.01 there is no such type as "number".
Speaking of HTML 5 FF and IE do not yet know the number type if http://www.w3schools.com/html5/html5_form_input_types.asp is correct.
/edit: So FF and IE will probably fallback to text and this is why maxlength will work.