Ticket #1891 (closed bug: worksforme)
DOM creation in IE broken
|Reported by:||george.petrov||Owned by:|
Seems that with the latest 1.2.1 some basic DOM creation like this:
var hImgCon = $('#d1'); var el = $('<span>'); el.appendTo( hImgCon ); alert(hImgCon.html());
is broken in IE6 and 7 - alerts empty string. While in FF is working all fine.
This was working fine with previous jQuery versions.
only creating $('<div>') works fine - other elements created by $(' <xxx>') do not come in IE.
Maybe this has to do something with closing tags? Because using $('<span />') seems to work fine!