html - Chrome ignores input maxlength even if type = text -


for html input, type="text", chrome seems ignore maxlength attribute when size large.

i can populate input (maxlength=1000000, type=text) field database 188906 characters, 57834 display in chrome. if view source, can see characters.

ie allows me see 188906 characters.

i know weird use case, involves user pasting in stock tickers input field.

https://jsfiddle.net/n69p2bqn/

<input code>too large post 

update : appears textarea can display data in chrome:

https://jsfiddle.net/4o1ch120/

<textarea code>too large post 

i believe still chrome bug though.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -