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: |
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.