I have no idea why anyone would do this, but it should be possible. Opera's latest snapshot, FF both do abide by maxlength.
Chromium bug: http://code.google.com/p/chromium/issues/detail?id=89732
Created attachment 104437 [details] Patch
Comment on attachment 104437 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104437&action=review Thank you for fixing this. The change looks ok. > LayoutTests/fast/forms/input-text-paste-maxlength.html:102 > +debug("pasting too much text with maxlength=0"); > +document.getElementById("l").focus(); > +document.execCommand("InsertHTML", false, "12x̲̅45"); > +shouldBe("domValueOf('l')", "''"); > +shouldBe("visibleValueOf('l')", "''"); > + Would you add similar test cases to fast/forms/textarea-maxlength.html please?
Created attachment 104463 [details] Patch
Comment on attachment 104463 [details] Patch Thanks!
Comment on attachment 104463 [details] Patch Clearing flags on attachment: 104463 Committed r93390: <http://trac.webkit.org/changeset/93390>
All reviewed patches have been landed. Closing bug.