Skip to main content

Bug Tracker

Side navigation

#1549 closed bug (fixed)

Opened August 29, 2007 10:52AM UTC

Closed September 04, 2007 04:35AM UTC

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

Attachments (0)
Change History (3)

Changed August 30, 2007 01:10AM UTC by arrix comment:1

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?

Changed August 30, 2007 10:30PM UTC by john comment:2

owner: → john
summary: Problem with IE in jQuery 1.1.4<tag/> in IE in jQuery 1.1.4

Changed September 04, 2007 04:35AM UTC by john comment:3

resolution: → fixed
status: newclosed

Fixed in SVN rev [3097].