Skip to main content

Bug Tracker

Side navigation

#10298 closed bug (invalid)

Opened September 17, 2011 08:28AM UTC

Closed October 12, 2011 01:37PM UTC

Last modified May 25, 2013 09:47PM UTC

appendChild not working in IE

Reported by: ej Owned by: ej
Priority: low Milestone: None
Component: misc Version: 1.6.4rc1
Keywords: Cc:
Blocked by: Blocking:
Description

In a in-app browser IE based the following is failing line 5644:

this.appendChild( elem );

I found #4378, and applying the same fix works:

this.parentNode.appendChild( elem );
Attachments (0)
Change History (7)

Changed September 17, 2011 12:25PM UTC by addyosmani comment:1

_comment0: Please provide us with some more information. When you say an in-app browser IE, do you mean an application using the MSIE ActiveX control? If so, what application are you referring to specifically? We'll need a little more information and ideally also a test case on jsFiddle that fully reproduces the behaviour you're seeing so we can evaluate it more accurately.1316263499179498
component: unfiledmisc
owner: → ej
priority: undecidedlow
status: newpending

Please provide us with some more information regarding the issue experienced. When you say an in-app browser IE, we'll probably assume you mean an MSIE ActiveX control unless otherwise stated. If so, what application are you referring to specifically? - there may be known issues which we can then cross-reference with other tickets. We'll need a little more information and ideally also a test case on jsFiddle that fully reproduces the behaviour you're seeing so we can evaluate it more accurately.

Changed September 27, 2011 07:29PM UTC by Andrew comment:2

This is probably not the best example, but it shows the error reported,

Run in IE7 or IE8

http://jsfiddle.net/DntAB/2/

I don't know if this is even valid, but you can see in FF/Chrome/IE9 the input will end up with "Echo!" being set as its innerHTML whereas in IE7/IE8 an error gets thrown, as it tries to append it to the input when the innerHTML call fails in the html() function.

Changed October 12, 2011 07:55AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed October 12, 2011 01:35PM UTC by dmethvin comment:4

resolution: invalid
status: closedreopened

Changed October 12, 2011 01:37PM UTC by dmethvin comment:5

resolution: → invalid
status: reopenedclosed

The test case is attempting to set content on an input element that cannot have children. IE throws an error for this case to notify you, but other browsers ignore the invalid action. In any case it's not something that anyone should be doing.

Changed October 18, 2012 10:18AM UTC by sacpundir comment:6

_comment0: \ \ \ try \ { \ this.appendChild( elem ); \ } \ catch(err) \ { \ } \ \ 1350555703805651
_comment1: replace \ \ \ \ {{{ \ this.appendChild( elem ); \ }}} \ \ \ \ with \ \ \ \ \ {{{ \ try \ { \ this.appendChild( elem ); \ } \ catch(err) \ { \ } \ }}} \ \ 1350555900577848

replace

this.appendChild( elem );

with

try
{
this.appendChild( elem );
}
catch(err)
{
}

The test case is attempting to set content on an input element that cannot have children. IE throws an error for this case to notify you, but other browsers ignore the invalid action. In any case it's not something that anyone should be doing.

Changed May 25, 2013 09:47PM UTC by cfischer83@aol.com comment:7

IE8 does fails when trying to append to html5 elements, such as aside, section, article etc.