capricorn86 / happy-dom

A JavaScript implementation of a web browser without its graphical user interface
MIT License
3.28k stars 200 forks source link

`hasPointerCapture` is not supported #1434

Open gBasil opened 4 months ago

gBasil commented 4 months ago

Is your feature request related to a problem? Please describe. I am writing some Vitest tests with the Kobalte component library. The Slider component uses the hasPointerCapture method on the Element interface, which happy-dom doesn't support.

Describe the solution you'd like Support for this function.

Describe alternatives you've considered happy-dom is the alternative for me. I've been using jsdom with Vitest, and ran into this issue with it. I saw that there was a draft pull request from 5 years ago that hadn't received any activity since 2021.

Additional context I have no knowledge of or experience working with hasPointerCapture(), so I don't think I'll be able to help much here.

Some related issues:

Thank you for developing this library, by the way :)