Bug Tracker

Opened 14 years ago

Closed 13 years ago

#5544 closed bug (fixed)

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:

Description

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.

Change History (2)

comment:1 Changed 13 years ago by dmethvin

Component: unfiledattributes

comment:2 Changed 13 years ago by dmethvin

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.