Summary: | maxlength = 0 on input is ignored | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Divya Manian <divya> | ||||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | tkent, webkit.review.bot | ||||||
Priority: | P1 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
URL: | http://jsfiddle.net/nimbu/PFKcB/ | ||||||||
Attachments: |
|
Description
Divya Manian
2011-08-01 16:39:52 PDT
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. |