We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug element.getBoundingClientRect().toJSON() throws as its not implemented.
getBoundingClientRect() returns DOMRect which inherits its properties from DOMRectReadOnly and it has toJSON method, which is listed in mdn and is supported by all browsers. In my jsdom based tests I was using jsdom-pollyfill to solve the usecase and the implementaction code it is was using is something like this https://github.com/remirror/remirror/blob/main/packages/jest-remirror/src/jsdom-polyfills.ts#L90-L92 Would you mind PR adding this method?
toJSON
jsdom-pollyfill
The text was updated successfully, but these errors were encountered:
fix: [capricorn86#1161] Implement DOMReact and DOMReactReadOnly inter…
5c80457
…faces
41cb5f2
chore: [capricorn86#1161] Fixes review findings
c302656
Merge pull request #1402 from domakas/domrect-implementation
2a8030f
fix: [#1161] Implement DOMReact and DOMReactReadOnly interfaces
Thank you for reporting @dragonofdeath ! 🙂
Big thanks to @domakas for contributing with a fix ⭐
https://github.com/capricorn86/happy-dom/releases/tag/v14.8.1
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
element.getBoundingClientRect().toJSON() throws as its not implemented.
getBoundingClientRect() returns DOMRect which inherits its properties from DOMRectReadOnly and it has
toJSON
method, which is listed in mdn and is supported by all browsers. In my jsdom based tests I was usingjsdom-pollyfill
to solve the usecase and the implementaction code it is was using is something like this https://github.com/remirror/remirror/blob/main/packages/jest-remirror/src/jsdom-polyfills.ts#L90-L92 Would you mind PR adding this method?The text was updated successfully, but these errors were encountered: