Closed
Bug 350786
Opened 18 years ago
Closed 16 years ago
maxlength on input field ignored when css style is display:None
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: tim, Unassigned)
References
Details
(Whiteboard: CLOSEME 07/05)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Using Chris Pedericks Web Developer toolbar to populate a form, I've noticed that maxlength is obeyed with visible fields, but is ignored when fields are hidden with display:none. Yes, the web dev toolbar populates these hidden fields.
Reproducible: Always
Steps to Reproduce:
See Summary and Description.
Actual Results:
Field submitted contains a value longer than maxlength
Expected Results:
Field submitted should have it's length limited to maxlength value.
Comment 1•17 years ago
|
||
Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Whiteboard: CLOSEME 07/05
Version: unspecified → 1.5.0.x Branch
Comment 2•17 years ago
|
||
Steve, this problem can be trivially checked by code inspection: maxlength checking happens in the editor, not the content node, and the editor only exists when the control is being rendered.
Arguably, that's correct behavior. See also bug 345267.
Depends on: 345267
Comment 3•16 years ago
|
||
I agree with Boris, this is correct (legacy) behavior. Only changes made
by the user are subject to the maxlength limit.
-> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•