http://archlinux.org/~jeff/safari_forms.html reports that text fields are hard-limited to 1024 characters in WebKit. Setting the length attribute to something greater seems to have no effect. Alp Toker says that 1024 is hard-coded into HTMLInputElement.cpp in many places as a length-limiter.
Created attachment 15223 [details] testcase
Created attachment 15224 [details] Remove hard-coded 1024 length limit A sensible upper limit should be chosen here. I went with 16384.
Comment on attachment 15224 [details] Remove hard-coded 1024 length limit I think we should try to figure out what other browsers do before we decide on a new limit. I do like that you put the limit into a variable, though.
From testing, and not looking at code, it would appear that there is no limit to the number of characters that are allowed to be entered on IE6 and Firefox 1.5. Though both IE6 and Firefox 1.5 begin to improperly render the characters when the strings gets to be about 500K characters long. Largest string I entered into the box on both IE6 and Firefox was: 1.7 million. Though I stopped at that point figuring it was probably not a small number. Lastly, it appears Safari:2.0.4(419.3) allows 11024 characters in its input boxes. Looking forward to a fix for this one as I exploit the text box's ability on Amazon.com.
Landed a slightly modified version as r24037
*** Bug 15048 has been marked as a duplicate of this bug. ***