Side navigation
#14958 closed bug (cantfix)
Opened April 02, 2014 01:51PM UTC
Closed April 02, 2014 02:03PM UTC
Last modified April 02, 2014 02:19PM UTC
Setting type attribute of input in IE8
Reported by: | tyler.barrus@noblis.org | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.11.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Dynamically creating elements and then setting the type throws an error in IE7 and IE8 but not in other supported browsers.
var el = $('<input/>'); el.attr('type', 'text'); // throws an error
Tested in 1.11.0, 1.10.1, and 1.9.1 with the same results.
Attachments (0)
Change History (4)
Changed April 02, 2014 02:03PM UTC by comment:1
resolution: | → cantfix |
---|---|
status: | new → closed |
Changed April 02, 2014 02:07PM UTC by comment:2
Changed April 02, 2014 02:10PM UTC by comment:3
There's also a note on http://api.jquery.com/attr/ about this.
Changed April 02, 2014 02:19PM UTC by comment:4
C'mon, *nobody* reads the docs page. Can you provide an authoritative link to StackOverflow?
Yes, and we cannot fix that because the browser just doesn't allow it. Until jQuery 1.9 we used to throw an error on *all* browsers to make them equally dumb, but decided that was a bad idea.