http://www.w3.org/TR/html401/interact/forms.html#adef-maxlength
this attribute specifies the maximum number of characters the user may enter.
All tested browsers (MSIE, FF, Opera, Chrome, Safari) follow this line.
However all except safari are too precise and allow
user
to enter 5 chars maximum, but server markup and client code can fill
whatever value.
Safari
forces all (server markup, client script and user) to obey 5,
too long string "123456" received from server markup
input type text="123456"
set by client code
i.value="123456";
i.setAttribute("value","123456")
or typed by user will always end up
CROPPED as 12345.
All others will show overflowed "123456" (even Chrome ;-)).
No comments:
Post a Comment