Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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
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.

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"