Bug Tracker

Modify

Ticket #3468 (closed bug: duplicate)

Opened 5 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to duplicate

duplicate of #3917

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.