doc.getElementsByClassName; Could be outdated
DavidCharif opened this issue · 1 comments
DavidCharif commented
At least with the new variable
var doc = new JSDOM(html);
Old one was var doc = jsdom(html);
then to get access to the elements you need to access with window.
doc.window.document.getElementsByClassName...
After working a little i find a better solution. Just var doc = new JSDOM(html).window.document;
then you can doc.getElements..
tomer8007 commented
Thank you, this is now fixed