Created
January 3, 2013 09:57
-
-
Save oliverfernandez/4442325 to your computer and use it in GitHub Desktop.
PhantomJS 1.8.0 iframe crash Run: phantomjs iframecrash.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div class="container"></div> | |
<script> | |
var container = document.getElementsByClassName("container")[0], | |
iframe = document.createElement("iframe"); | |
container.appendChild(iframe); | |
container.removeChild(iframe); | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = new WebPage(); | |
page.open("./iframecrash.html", function(status) { | |
console.log(status); | |
phantom.exit(); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment