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
TypeError: target.ownerDocument.createRange is not a function #450
Comments
Am using
|
Having the same issue. It looks like happy-dom does not implement the Range class. So then it appears that happy-dom cannot be used with user-event until this is resolved? |
I'm waiting for this as well. We want to use this through the vitest package and jsdom is too slow. I made this issue in vitest for reference with an reproducible example: vitest-dev/vitest#1354 |
I have started on implementing it now 🙂 |
@capricorn86 let me know if there's anyway I can be of help. The company i'm working for has given us the budget to help on the effort since we use this :-) |
@frankandrobot nice to hear! Its quite a lot of logic in Range, but it might at the same time be hard to split up the work. I will keep it in mind 🙂 |
Howdy @capricorn86 , just wanted to know how the effort is going and offering help again if needed with the implementation :-) |
@frankandrobot this is my main task that I am working on. Some of the logic is a bit tricky to get right. I would say that about half has been done 😅 |
Not sure if it is possible to collaborate on this one. It can be hard to work in the same files 😅 |
@testing-library/user-events has issues on happy-dom due to capricorn86/happy-dom#450. Once createRange is implemented we should be able to switch back to happy-dom and get much better test performance than with jsdom
…ializeToString(). Fixes issue with HTMLTemplateElement.outerHTML.
… for Document.getSelection(). Fixes issue preventing usage of multiple Window instances.
We finally have full support for document.createRange() and document.getSelection()! 😄 I am sorry that it took such a long time. It was a lot more complicated than I expected and a lot of code had to be written to support this. You can read more about the release here: |
Awesome work. Can't wait to try it out
On Jun 30, 2022 5:49 PM, David Ortner ***@***.***> wrote:
We finally have full support for document.createRange() and document.getSelection()! 😄
I am sorry that it took such a long time. It was a lot more complicated than I expected and a lot of code had to be written to support this.
You can read more about the release here:
https://github.com/capricorn86/happy-dom/releases/tag/v6.0.0
—
Reply to this email directly, view it on GitHub<#450 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAGAGMIFNU3RYU4K6WCSBMDVRYP7RANCNFSM5STWOZSQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Using
@testing-library/user-event@14.0.4
https://developer.mozilla.org/en-US/docs/Web/API/Range
The text was updated successfully, but these errors were encountered: