mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #1659 from spicyj/test-ie10-iframe
Fix EnterLeaveEventPlugin-test in IE10
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user