Bug Tracker

Modify

Ticket #2170 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

attr() fails to get/set value for maxlength attribute on textarea elements

Reported by: rettipio Owned by:
Priority: minor Milestone: 1.2.4
Component: core Version: 1.2.2
Keywords: attr Cc:
Blocking: Blocked by:

Description

On tested browsers (IE 6+, Safari 3 Win/Mac, FF 2+ Win/Mac) the attr() method fails to get/set value for the maxlength attribute on textarea elements. While maxlength is not a valid attribute for the textarea element, the company i work for uses it for validation purposes, and theoretically, jQuery should be able to find any attribute of a particular element.

I have attached fixed versions of jQuery core v.1.2.2.

The offending(now fixed) code occurs at line 1040 in the attached uncompressed version.

Attachments

jquery.uncompressed.js Download (93.2 KB) - added by rettipio 5 years ago.

Change History

Changed 5 years ago by rettipio

comment:1 Changed 5 years ago by joern

  • Milestone changed from 1.2.2 to 1.2.3

comment:2 Changed 5 years ago by joern

  • need changed from Patch to Test Case

comment:3 Changed 5 years ago by flesler

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

Fixed at [5574], check #2548.

comment:4 Changed 5 years ago by flesler

  • Milestone changed from 1.2.3 to 1.2.4

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.