Closed
Bug 537079
Opened 15 years ago
Closed 15 years ago
Autocomplete neglects maxlength of input
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 444728
People
(Reporter: elkodesign, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
While filling a form one can use the autocomplete function on an input. But when you have an input with maxlength Firefox doesn't take the maxlength into account. This way one is able to enter longer entries than allowed.
Reproducible: Always
Steps to Reproduce:
Example!!
1. Create a form with an input 'email' that has attributes:
- name: 'email'
- maxlength: 100
2. Fill this form with 'test@example.com' as your input and submit it(using <enter>).
2. Adjust the form inputs 'maxlength' to 10.
3. Fill the form again with the same value using autocomplete. (Just start typing the same input and use the arrowkeys to select your previously entered value and submit.
Actual Results:
Firefox accepts the value and submits it.
Expected Results:
Firefox should truncate the input to the new maxlength while using autocomplete. Then submitting is allowed.
Compare with IE(8).
Comment 1•15 years ago
|
||
I just tried to replicate this bug, but could not on : Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2b6pre) Gecko/20091228 Namoroka/3.6b6pre
I will attached a test form html file. Any time the maxlength shrinks the valid entries that populate the autocomplete. Of course this is with me actually submitting the form just like your STR.
Comment 2•15 years ago
|
||
Reporter | ||
Comment 3•15 years ago
|
||
Performed another test on : Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
1. Edit the form html, remove maxlength="4".
2. Open the form in Firefox and fill in text '123456789'. Submit using <enter>
3. Edit the form html, restore maxlength="4"
4. Open the form in Firefox and start typing text '1234'. (Typing '5' now won't work because of the maxlength.) Select the previously entered value using the arrow keys. Submit using <enter>.
Comment 4•15 years ago
|
||
This has been fixed in bug 444728 so that saved entries longer than maxlength are not displayed in the drop-down. The fix is in the Firefox 3.6 beta which you can get from:
http://www.mozilla.com/en-US/firefox/all-beta.html
Thanks for the report
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Component: General → Form Manager
OS: Windows Vista → All
Product: Firefox → Toolkit
QA Contact: general → form.manager
Hardware: x86 → All
Resolution: --- → DUPLICATE
Version: unspecified → 1.9.1 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•