capricorn86 / happy-dom

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

<img> tag loading property not implemented #1311

Closed totol123 closed 5 months ago

totol123 commented 5 months ago

Describe the bug

Working with :

I'm using API.

It raises a warning : [Vue warn]: Failed setting prop "loading" on <img>: value lazy is invalid. TypeError: Cannot set property loading of [object Object] which has only a getter

and fail to put the attribute loading on the (I checked on snapshot.)

I tried to switch to jsdom to compare and it works.

To Reproduce Steps to reproduce the behavior:

  1. Try to instantiate an with happy-dom

Expected behavior Put the loading attribute to the , causing no warning

Additional context It's a quite implemented feature image

Thank you a lot for your work. Anatole

capricorn86 commented 5 months ago

Thank you for reporting @totol123! :slightly_smiling_face:

This was fixed in v13.7.7. Please check if you are running on this version or later.

capricorn86 commented 5 months ago

Duplicate of #1218

totol123 commented 5 months ago

Oh I missed this, sorry for the dupplicate. Thank you a lot.

Anatole