ie8 / jquery issue
===

I am having an IE8 issue with my jquery code.
As far as I can tell when I change some content in a dom document it works if the change is minor.
So this works:

    $("#element").html("<p>hi</p>");

But the following is not working, where the variable is a more complex dom element like a web form.

    $("#element").html(variable);

How should I be inserting or changing the dom for ie8?
Thanks,

Mat
