Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isolated-vm doesn't work with jquery selectors #432

Open
cutepandaforeverandever opened this issue Dec 22, 2023 · 1 comment
Open

isolated-vm doesn't work with jquery selectors #432

cutepandaforeverandever opened this issue Dec 22, 2023 · 1 comment

Comments

@cutepandaforeverandever

I am using the Cheerio library to parse HTML using isolated-vm. I am using a jQuery-like selector to select elements from the parsed HTML. However, I am encountering issues when trying to execute this jQuery selector expression within isolated-vm. The problem seems to be that the entire jQuery selector expression cannot be executed in one go in the isolated VM. As a workaround, i am considering splitting the jQuery selector and the subsequent expression into separate parts. However, this approach appears to complicate the handling of selectors like $("strong")[0]. Therefore, I amlooking for a solution that can execute the jQuery selector expression in the isolated VM without complicating the handling of such selectors. Anyone can help me?

@TheWisper
Copy link

可能我跟你在做同样的事,但是我现在都没办法调试,你可以用isolated调试吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants