is there a max size to the length of a hidden input in html?

前端 未结 2 1392
走了就别回头了
走了就别回头了 2020-11-29 03:32

in other words:


and if so, what is it?<

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 03:45

    Warning! I have experienced problems with when text is longer than 65535 (max signed int size)

    Pasting the text seems to cause some weird overflow of content. Spotted in webkit.

    [edit]

    The size of GET request is not exactly limited the way Pekka wrote. There is a limit of 2083 bytes for the whole GET query string address?params in Internet Explorer only In other browsers there is practically no limit, with FireFox sending GET queries of over 100KB for example. Obviously the server has to allow those.

    It's not covered in documentation, so one has to test it to know the limits for other browsers. IE: http://support.microsoft.com/kb/208427

提交回复
热议问题