Last active
December 18, 2015 17:58
-
-
Save muddydixon/5821898 to your computer and use it in GitHub Desktop.
This html crashes phantomjs.
A html that the `select` containing `option` elements also crashes phantomjs.
However a html in which span is above select does not crash phantomjs.
This file contains 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
phantom = require 'node-phantom' | |
fs = require 'fs' | |
html = fs.readFileSync 'sample.html', 'utf8' | |
phantom.create (err, ph)-> | |
ph.createPage (err, page)-> | |
page.set 'content', html |
This file contains 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
<html> | |
<body> | |
<select> | |
</select> | |
<span style="background-image: url(http://phantomjs.org/images/phantomjs-logo.png);">crash</span> | |
</body> | |
</html> |
This file contains 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
% coffee src/phantom-crash.coffee | |
phantom stderr: PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/01B44789-0011-4648-8997-36AC38C80BE0.dmp | |
phantom crash: code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
related here : ariya/phantomjs#11201