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
window.getSelection is not a function #457
Comments
you can use polyfill document.getSelection() == document.getSelection()
// in happy-dom: false
// in chromium : true only this now.
Refer: |
@Mas0nShi Thank you very much for your reply😀 document.getSelection() is ok, but when i use |
…is-not-a-function #457@minor: Adds support for Window.getSelection().
Thank you for helping out @Mas0nShi! 🙂 |
@thanks for reporting @cll123456! 🙂 I have now added support for Window.getSelection(). You can read more about the release here: |
I use vitest to test my component, but my component use
window.getSelection()
api, i get errors as follows:The text was updated successfully, but these errors were encountered: