Skip to content

Commit

Permalink
Merge pull request facebook#1659 from spicyj/test-ie10-iframe
Browse files Browse the repository at this point in the history
Fix EnterLeaveEventPlugin-test in IE10
  • Loading branch information
chenglou committed Jun 11, 2014
2 parents 92c174f + e938116 commit 9eff32c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9eff32c

Please sign in to comment.