Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8647 closed bug (duplicate)

Can't delete the attribute size with FF4

Reported by: anonymous Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.5.1
Keywords: needsreview Cc:
Blocked by: Blocking:

Description

The following code:

<input type="text" size="5" />
<script>
	$('input').removeAttr('size');
</script>

Gives an error at line 2065 of jquery 1.5.1:

Index or size is negative or greater than the allowed amount" code: "1 [Break On This Error] elem[ name ] = value;

This looks to happen only in FF4

Change History (3)

comment:1 Changed 7 years ago by Rick Waldron

Component: unfiledattributes
Keywords: needsreview added
Status: newopen

Confirmed, but this is happening all the way back to jQuery 1.2.6

http://jsfiddle.net/rwaldron/TD5gJ/

Note, Firefox is hijacking console.log, so use the "web console"

comment:2 Changed 7 years ago by Rick Waldron

Priority: undecidedlow
Resolution: duplicate
Status: openclosed

comment:3 Changed 7 years ago by Rick Waldron

Duplicate of #8117.

Note: See TracTickets for help on using tickets.