What is the reason why textarea before HTML5 has no maxlength attribute? There must be reason for this, did they (author of HTML) miss it or did they do it on purpose? What is the purpose? I’m not looking for the solution on how to implement maxlength in textarea.
Any help would be appreciated.
The textarea element does have a maxlength attribute as of HTML5. Hoorah! If you want to make guesses at why it wasn’t implemented in HTML4, a good guess would be that a textarea was intended to be used for a potentially unknown amount of text and setting a maximum length didn’t seem plausible at the time, but they’ve since been proven wrong. But that’s all you can really get is guesses.