以下曾经在 IE8 中工作的 JS 现在在 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>');
我得到以下异常: SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5)
是不是上面这段代码不符合标准。该问题的解决方法是什么?