Bug Tracker

Modify

Ticket #8502 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

.append on IE8 stops script execution.

Reported by: sein.adamczyk@… Owned by: sein.adamczyk@…
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocking: Blocked by:

Description

I found out that using sth like $("input[name=myInput]").append('<input name="myNewInput" type="hidden" value="" />');

stops script execution and throws:

User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

Unexpected method execution. Row: 5114 Character: 5 Code: 0 URI:  http://localhost/js/jquery-1.5.1.js

Tested on IE8 for Windows XP and Windows Vista

Change History

comment:1 Changed 2 years ago by ajpiano

  • Owner set to sein.adamczyk@…
  • Status changed from new to pending

Thanks for your time and interest in helping the jQuery project, but I'm pretty sure this isn't a valid bug. It is not possible to insert an input element inside of another input element. Furthermore, you did not provide a testcase that complies with the  bug reporting guidelines.

comment:2 Changed 2 years ago by dmethvin

  • Status changed from pending to closed
  • Resolution set to invalid

ajpiano is right, this is invalid. I think you probably meant to use .after() rather than .append().

comment:3 Changed 2 years ago by anonymous

strange thing is it was working on other browsers... anyway, thanks for the hint, and yeap I should use .after() instead and I confused it with .append(). Now it's working without a glitch. Sorry for unnecessary bug report

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.