You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In nodejs, I use jsdom 15.2.0 to parse the html source code.
It works well for most XPaths except when the path is to an attribute, such as //div/@Class.
TypeError: Cannot read property 'createRange' of undefined at La (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:42:35) at Pa (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:42:645) at kb.a (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:57:328) at Nb.evaluate (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:73:1130) at Document.Pb.d.evaluate (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:77:159)
Is there any other library that is fully compatible with wgxpath? or any other workaround?
In nodejs, I use jsdom 15.2.0 to parse the html source code.
It works well for most XPaths except when the path is to an attribute, such as //div/@Class.
TypeError: Cannot read property 'createRange' of undefined at La (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:42:35) at Pa (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:42:645) at kb.a (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:57:328) at Nb.evaluate (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:73:1130) at Document.Pb.d.evaluate (/var/www/api/node_modules/wicked-good-xpath/dist/wgxpath.install-node.js:77:159)Is there any other library that is fully compatible with wgxpath? or any other workaround?