Closed
Bug 485710
Opened 16 years ago
Closed 16 years ago
Field fill in does not recognize maxlength for input element
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 444728
People
(Reporter: aschneid, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
When defining an input html field having a maxlength, it will be recognized in the form when entering data directly.
But when a value is selected from the field fill in list (do not know the correct term..) - the list that pops up when double click on the input filed, then you can select values which are longer than the maxlength set. The browser will accept them without truncation or whatsoever
Reproducible: Always
Steps to Reproduce:
1. Create a sample page like this :
<html>
<body>
<p> the following should be restricted
<form id="msgform" method="POST" action="http://abc">
<input type="text" size="3" maxlength="3"
class="tf" tabindex="1"
name="awf8_p"
value="N" />
<input type="submit" name="msgpf.action.submit"
value="Submit" />
</form>
</body>
</html>
2. Enter "ABC" in the entry field and submit (will go nowhere..)
3. Reduce the maxlength and size values to 1
4. Reload the page and enter "A" -> it will display "ABC" as possible value
5. when "ABC" has been selected, then ABC will be in the entry field
Actual Results:
The value longer than maxlength is accepted in the entry field
Expected Results:
It should only accept values from the list up to the defined maxlength and truncate the rest
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•