Closed Bug 190425 Opened 22 years ago Closed 22 years ago

Mozilla ignores the "maxlength" attribute in text-input fields.

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: ccurzio+mozilla, Assigned: bzbarsky)

References

()

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030123
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030123

As demonstrated using my paging form (See URL), you are able to enter a number
of characters that greatly exceeds that defined in the input's "maxlength"
attribute. 

Reproducible: Always

Steps to Reproduce:
1. Create an HTML form utilizing input type="text" and a defined "maxlength"
2. Use Mozilla to view the form and input a value that exceeds the maxlength.

Actual Results:  
Mozilla allows you to continue entering data after the maxlength has been met
and exceeded.

Expected Results:  
Disallow further input once maxlength has been met.
Attached file testcase
To jkeiser; this regressed in the HTMLValue landing
Assignee: form-submission → jkeiser
Severity: normal → major
Flags: blocking1.3b?
OS: Linux → All
Hardware: PC → All
Summary: Mozilla ignores the "maxlength" attribute in text-input fields. → Mozilla ignores the "maxlength" attribute in text-input fields.
Attached patch patchSplinter Review
Attachment #112498 - Flags: superreview?(jst)
Attachment #112498 - Flags: review?(jkeiser)
Comment on attachment 112498 [details] [diff] [review]
patch

*sigh*
Attachment #112498 - Flags: superreview?(jst) → superreview+
Comment on attachment 112498 [details] [diff] [review]
patch

I'm assuming jkeiser meant the other checkbox...
Attachment #112498 - Flags: superreview?(jst)
Attachment #112498 - Flags: superreview+
Attachment #112498 - Flags: review?(jkeiser)
Attachment #112498 - Flags: review+
Comment on attachment 112498 [details] [diff] [review]
patch

sr=jst
Attachment #112498 - Flags: superreview?(jst) → superreview+
Comment on attachment 112498 [details] [diff] [review]
patch

Simple safe patch, pretty noticeable problem... requesting approval
Attachment #112498 - Flags: approval1.3b?
Comment on attachment 112498 [details] [diff] [review]
patch

a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #112498 - Flags: approval1.3b? → approval1.3b+
taking...
Assignee: jkeiser → bzbarsky
fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Flags: blocking1.3b?
Resolution: --- → FIXED
Verifying
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: