Open
Bug 502462
Opened 16 years ago
Updated 3 years ago
maxlength attribute doesn't affect multiline xul textbox
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
NEW
People
(Reporter: sonny, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1pre) Gecko/20090705 Shiretoko/3.5.1pre
Build Identifier: ftp://ftp.mozilla.org/pub/xulrunner/nightly/latest-mozilla-1.9.1/
<textbox multiline="true" maxlength="140"/>
Reproducible: Always
| Reporter | ||
Updated•16 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Version: unspecified → 1.9.1 Branch
| Reporter | ||
Updated•16 years ago
|
Summary: MAXLENGTH setting does not affected multiline input → xul maxlength attribute doesn't affect multiline xul textbox
| Reporter | ||
Updated•16 years ago
|
Summary: xul maxlength attribute doesn't affect multiline xul textbox → maxlength attribute doesn't affect multiline xul textbox
Comment 2•16 years ago
|
||
This happens because a simple <textbox/> and <textbox multiline="true"/> use different bindings per: http://hg.mozilla.org/mozilla-central/annotate/9061f43b86bd/toolkit/content/xul.css#l668
<textbox/> uses html:input in as its implementation, which supports maxlength, so we're just delegating the attribute to the HMTL element:
http://hg.mozilla.org/mozilla-central/annotate/9061f43b86bd/toolkit/content/widgets/textbox.xml#l14
<textbox multiline="true"/> uses html:textarea, which doesn't support maxlength:
http://hg.mozilla.org/mozilla-central/annotate/9061f43b86bd/toolkit/content/widgets/textbox.xml#l502
(There's also inconsistency that the maxLength property applies to the multiline textboxes too, since the textarea binding extends the basic textbox binding.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: 1.9.1 Branch → Trunk
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•