Bug Tracker

Ticket #3468 (new bug)

Opened 3 months ago

maxlength attribute matches and returns -1 when not specified

Reported by: Phrogz Assigned to: flesler
Type: bug Priority: critical
Milestone: 1.3 Component: unfilled
Version: 1.2.6 Keywords:
Cc: !@phrogz.net Needs: Review

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.

Attachments

Note: See TracTickets for help on using tickets.