Is jQuery 1.6.4 append() is broken in IE?
This code works everywhere but IE6+
$('<xml></xml>').append('<test>hello world</test>');
Is there a way to fix that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the docs:
The argument passed to jQuery is not HTML(there is no html-element
xml) so there will be nothing to append something to.Take a look at MSDN for informations about creation of XML-Documents in IE<9