#8502 closed bug (invalid)
.append on IE8 stops script execution.
Reported by: | Owned by: | ||
---|---|---|---|
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
Change History (3)
comment:1 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
ajpiano is right, this is invalid. I think you probably meant to use .after()
rather than .append()
.
comment:3 Changed 12 years ago by
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
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.