#4834 closed defect (fixed)
maxlength problem in dijit.form.TextBox
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Dijit - Form | Version: | 1.0 |
Keywords: | maxlength | Cc: | |
Blocked By: | Blocking: |
Attachments (1)
Change History (7)
Changed 15 years ago by
Attachment: | TextBox.js added |
---|
comment:1 Changed 15 years ago by
Owner: | set to Adam Peller |
---|
comment:2 Changed 15 years ago by
Owner: | changed from Adam Peller to Douglas Hays |
---|
Doug, the fix appears to be as simple as camel-casing maxLength, though I seem to remember that we deliberately left these in all lower-case. Plus, HTML should be case insensitive. Any idea what's going on here?
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
According to bug 4834, it seems to be closed because closing comment says that the maxLength is not working in IE which has been fixed but it has still some problem. I took new nightly build release.
Suppose if I write this code then what do you think. It should have default value "te" in the text box. but it is displaying "testing testing" in IE 6 and "te" in Mozila. Like same I found one bug in dijit.form.DateTextBox?. In IE it is displaying good but in mozilla it is not displaying anything except single dark line.
code is:- input type="text" name="firstname" value="testing testing" dojoType="dijit.form.TextBox?" trim="true" onchange="myname();" propercase="true" maxLength="2"
• Browser type (IE 6.0, Firefox/5.0) • OS and OS Version (Microsoft windows 5.0 (XP) service pack 2) • Took the example from the dojo document and try to run it in IE and Firefox both. • [email protected]….
comment:5 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
The original problem is fixed. The differences that you are seeing are differences in how maxLength is interpreted by different browsers.
<input type="text" value="testing testing" maxLength="2">
shows the whole text in IE (but no more characters can be entered) and only te in FF. This is a user error since the web page author should have truncated the value.
comment:6 Changed 11 years ago by
Component: | Dijit → Dijit - Form |
---|
The defect specified is fixed in this attached file