While creating self contained elements with Jquery html() the following issue happens:
$('#someId').html('<li><input type="checkbox" /></li>')
will create
<li><input type="checkbox"></li>
It closes correctly the <li>
tag but not the <input>
It seems its an issue from innerHtml which is used in the html() function.
I have looked everywhere and found a solution for this but the page is not available anymore as you see in: http://dev.jquery.it/ticket/3378
Anybody knows how to fix this?