html() and clone() causing problems in IE

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.

Image

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 in advance![/img]