Open chmac opened 9 years ago
Oh, and I forgot to say, thanks for this awesome tool @ruipgil :-)
This is a very strange behaviour. It seems to be a node-phantom
problem, since when the result is turned into a string with JSON.stringify
the error disappears.
Running your example all I get is an empty array. What version of phantomjs and scraperjs are you running?
Also, in your example, since you start the array with an entry (of a
) you should expect the output to be,
[ [ 'a', 'b', 'c' ], [ 'a', 'b', 'c' ], [ 'a', 'b', 'c' ], [ 'a', 'b', 'c' ] ]
Thank you.
scraperjs v 0.3.4
and phantomjs 1.9.8
on Ubuntu 14.04.
Haha, you're right, I missed one of the arrays. :-)
Here's a simple reproduction
Or the meaningful part in javascript for those who prefer:
I would expect to see this:
But I see this:
Is it my mistake? Is it a bug? In this package? PhantomJS?