Modify ↓
Ticket #1549 (closed bug: fixed)
<tag/> in IE in jQuery 1.1.4
| Reported by: | sullof | Owned by: | john |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2 |
| Component: | core | Version: | 1.1.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
If you launch in IE the following code
$("body").append($('<form id="testform" name="Hello"/>'))
alert($("#testform").attr("name"))
jQuery 1.1.3 (and previous) returns "Hello" as we aspected. Instead jQuery 1.1.4 returns "undefined".
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This will alert "Hello" as expected
$("body").append($('<form id="testform" name="Hello"></form>')); alert($("#testform").attr("name"));Avoid using $('<tag/>') syntax for elements that require a closing tag in IE. Should this be documented somewhere?