Skip to content
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: Cannot set property srcObject of [object Object] which has only a getter #1557

Open
zeid0ne opened this issue Sep 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zeid0ne
Copy link

zeid0ne commented Sep 28, 2024

Describe the bug
I cant set the srcObject props of a dom element "generated" by happi-dom

To Reproduce
https://stackblitz.com/edit/vitest-dev-vitest-ve6adl

Expected behavior
I can set srcObject to a stream or anything else

Device:
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 AMD Ryzen 7 7745HX with Radeon Graphics
Memory: 15.30 GB / 31.69 GB
Browsers:
Edge: Chromium (125.0.2535.92)
Internet Explorer: 11.0.22621.3527
Happy-dom: 15.7.4

Additional context
I am using vitest. Thats working well with jsdom.

@zeid0ne zeid0ne added the bug Something isn't working label Sep 28, 2024
ewesemann added a commit to ewesemann/happy-dom that referenced this issue Oct 6, 2024
capricorn86 added a commit to ewesemann/happy-dom that referenced this issue Nov 6, 2024
capricorn86 added a commit that referenced this issue Nov 6, 2024
…roperty (#1560)

* fix: [#1557] TypeError: Cannot set property srcObject had only a getter

* chore: [#1557] Adds validation for if object is of type MediaStream

---------

Co-authored-by: David Ortner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant