Skip to main content

Bug Tracker

Side navigation

#5544 closed bug (fixed)

Opened November 23, 2009 11:13PM UTC

Closed September 03, 2010 01:18AM UTC

Setting type attribute on button tag fails without exception in IE

Reported by: Ceriak Owned by:
Priority: major Milestone: 1.4
Component: attributes Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

var button = $(document.createElement('button'));

button.attr('type', 'submit');

Setting the type attribute on an input element throws an error, because IE is unable to carry it out, however doing so on a button element just silently fails, since attr() only checks for not being called on an input.

Attachments (0)
Change History (2)

Changed June 13, 2010 06:53PM UTC by dmethvin comment:1

component: unfiledattributes

Changed September 03, 2010 01:18AM UTC by dmethvin comment:2

resolution: → fixed
status: newclosed

This is fixed in 1.4, it throws an error for both button and input.