oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.42k stars 2.78k forks source link

Puppeteer incompatibility using ::-p-xpath() selector #13853

Open harveylee opened 2 months ago

harveylee commented 2 months ago

What version of Bun is running?

1.1.27+267afa293

What platform is your computer?

Linux 6.1.43 x86_64 unknown

What steps can reproduce the bug?

Repros:

Bun https://codesandbox.io/p/devbox/currying-darkness-xk7gyk

Node https://codesandbox.io/p/devbox/wnrrdm

What is the expected behavior?

::-p-xpath() selector works in Puppeteer

What do you see instead?

Error message as above. Essentially the selector times out and fails.

Additional information

This is a related issue (closed as "not planned") in the Puppeteer repo. https://github.com/puppeteer/puppeteer/issues/12570

One of the comments from a maintainer was

Note that we have done some refactoring in 22.10.1 and moved the selector parsing to the Node.js process. I wonder if bun perhaps not behaving in the same way as Node? (we do not support bun)

Jarred-Sumner commented 2 months ago

interesting