Merge pull request #1659 from spicyj/test-ie10-iframe

Fix EnterLeaveEventPlugin-test in IE10
This commit is contained in:
Cheng Lou
2014-06-11 13:44:16 -07:00
@@ -46,9 +46,10 @@ describe('EnterLeaveEventPlugin', function() {
var iframeDocument = iframe.contentDocument;
if (!iframeDocument.innerHTML) {
iframeDocument.innerHTML = '<html><head></head><body></body></html>';
}
iframeDocument.write(
'<!DOCTYPE html><html><head></head><body></body></html>'
);
iframeDocument.close();
var component = React.renderComponent(<div />, iframeDocument.body);
var div = component.getDOMNode();