Skip to main content

Bug Tracker

Side navigation

#8502 closed bug (invalid)

Opened March 11, 2011 11:44AM UTC

Closed March 11, 2011 02:55PM UTC

Last modified March 11, 2011 03:45PM UTC

.append on IE8 stops script execution.

Reported by: sein.adamczyk@gmail.com Owned by: sein.adamczyk@gmail.com
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
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

Attachments (0)
Change History (3)

Changed March 11, 2011 01:14PM UTC by ajpiano comment:1

owner: → sein.adamczyk@gmail.com
status: newpending

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.

Changed March 11, 2011 02:55PM UTC by dmethvin comment:2

resolution: → invalid
status: pendingclosed

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

Changed March 11, 2011 03:45PM UTC by anonymous comment:3

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