Like in text field for writing post or login/password field for typing login credentials.
As an example, there's question on SO: Should I impose a maximum length on passwords? in which users like @epochwolf, @tardate or @kravietz imply that input length limits are security warning, because i.e. it's makes harder to create stronger passwords.
OTOH @Jason Dagit writes, that text input field without any limits allows potential attackers to make DoS attacks, using hugely long strings in inputs - but url limit can be imposed on server-side.
Also I've read about backward compatibility with legacy systems, that impose short strings values in form for it's users.
Even HTML5.2 Forms specification - The maxlength and minlength attributes says nothing technically specific about this problem.
Could anyone shine some light on this problem?