Bug Tracker

Opened 16 years ago

Closed 16 years ago

#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:
Blocked by: Blocking:

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 (3)

comment:1 Changed 16 years ago by arrix

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?

comment:2 Changed 16 years ago by john

Owner: set to john
Summary: Problem with IE in jQuery 1.1.4<tag/> in IE in jQuery 1.1.4

comment:3 Changed 16 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [3097].

Note: See TracTickets for help on using tickets.