Bug Tracker

Modify

Ticket #1549 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

<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

comment:1 Changed 6 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 6 years ago by john

  • Owner set to john
  • Summary changed from Problem with IE in jQuery 1.1.4 to <tag/> in IE in jQuery 1.1.4

comment:3 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev [3097].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.