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
I am working on updating a common JS module to run server side in node and node-RED. It has some calls to element.querySelectorAll() in parsing xml elements of svg paths mostly, and I found cheeriojs in hopes of a drop-in replacement.
I have had some runtime success in replacing the browser side queries with the cheerio query, but the return string is in a different format. I saw some mention of maybe using nodelist after, but I am not sure that is the proper approach. Anybody have any examples of using cheeriojs as a drop-in replacement for the element.querySelectorAll()?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am working on updating a common JS module to run server side in node and node-RED. It has some calls to element.querySelectorAll() in parsing xml elements of svg paths mostly, and I found cheeriojs in hopes of a drop-in replacement.
I have had some runtime success in replacing the browser side queries with the cheerio query, but the return string is in a different format. I saw some mention of maybe using nodelist after, but I am not sure that is the proper approach. Anybody have any examples of using cheeriojs as a drop-in replacement for the element.querySelectorAll()?
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions