[jQuery] html() and clone() causing problems in IE
I am aware that IE provides bad HTML from the innerHTML property of a DOM
element but when I duplicate a hidden template layer in my page and add the
clone to the page IE is showing some of the input tag's inner contents
within the text input area. Please see the attached screen shot.
http://www.nabble.com/file/p23931280/Screenshot.jpg
The code doing this is as follows:
// Create a copy of the template to be used for this form
var form = $('#templates > '+o.template).clone();
var placeHolder = target.children(o.placeHolderSelector);
if(placeHolder)
placeHolder.before(form);
else
target.append(form);
Any help would be greatly appreciated as this problem has been eating me for
a week and deadlines are getting tight. Thanks!
--
View this message in context: http://www.nabble.com/html%28%29-and-clone%28%29-causing-problems-in-IE-tp23931280s27240p23931280.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.