Skip to main content

Bug Tracker

Side navigation

#8647 closed bug (duplicate)

Opened March 25, 2011 04:17PM UTC

Closed March 30, 2011 07:31PM UTC

Last modified March 30, 2011 07:31PM UTC

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

Attachments (0)
Change History (3)

Changed March 30, 2011 03:57PM UTC by rwaldron comment:1

component: unfiledattributes
keywords: → needsreview
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"

Changed March 30, 2011 07:31PM UTC by rwaldron comment:2

priority: undecidedlow
resolution: → duplicate
status: openclosed

Changed March 30, 2011 07:31PM UTC by rwaldron comment:3

Duplicate of #8117.