Modify ↓
Ticket #3468 (closed bug: duplicate)
maxlength attribute matches and returns -1 when not specified
| Reported by: | Phrogz | Owned by: | flesler |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.3 |
| Component: | unfiled | Version: | 1.2.6 |
| Keywords: | Cc: | !@… | |
| Blocking: | Blocked by: |
Description
With <input type="text|hidden"> with no maxlength attribute specified, this selector "input[maxlength]" matches the input. Further, theField.attr('maxlength') returns -1, where theField[0].getAttribute('maxlength') correctly returns null.
Experienced on FF3.0.3 on OS X.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

duplicate of #3917