I will rescue two facts listed in this thread, about using jquery and creating tags
[quote][1]
Basically $( '<span class="foo">' ) will break completely in IE7/IE8.
[quote][2]
It's important to note however that IE required that input and button >tags are created with a type (if they are going to have a specific one)
$( '<input type="password">', { 'class', 'example' } );