-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
iframe.style.display = 'none';
html.appendChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(scriptTag('document.F=Object'));
iframeDocument.close();
这个分支的代码会报错,es3非浏览器环境下,没有处理iframe={}的情况,html为空的情况,
NullProtoObject = typeof document != 'undefined' ?
document.domain && activeXDocument ?
NullProtoObjectViaActiveX(activeXDocument) // old IE
:
NullProtoObjectViaIFrame() :
NullProtoObjectViaActiveX(activeXDocument); // WSH
没有考虑更多情况
Metadata
Metadata
Assignees
Labels
No labels