The following piece of JS which used to work in IE8 is failing now in IE9.
document.createElement('<iframe id="yui-history-iframe" src="../../images/defaults/transparent-pixel.gif" style="position:absolute;top:0;left:0;width:1px;height:1px;visibility:hidden;"></iframe>');
I get the following exception : SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5)
Is the above piece of code not according to standards. What's the fix for the issue?