$('<tag/>') in IE
$('<tag/>') in IE
In IE, $('<tag/>') syntax is problematic with elements that requires a closing tag.
e.g. $('<span/>') always returns an empty set.
I tested all elements listed here (<a href="http://www.w3.org/TR/html401/index/elements.html">http://www.w3.org/TR/html401/index/elements.html</a>), $('<tag/>') fails with
A ABBR
ACRONYM B BASEFONT BDO BIG BODY CENTER CITE CODE DEL DFN EM FONT FORM
H1 H2 H3 H4 H5 H6 HEAD HTML I INS KBD LABEL MAP Q S SAMP SMALL SPAN
STRIKE STRONG SUB SUP TITLE TT U VAR
Of course, it doesn't make sense to create elements like BODY, HEAD and TITLE.
I haven't filed a bug on this issue because I consider the <span/> syntax invalid and thus it isn't a jQuery bug.
However, I've seen quite a few tickets related to this issue. It would be helpful to add a NOTICE somewhere in the document.
<br clear="all">
--
Arrix