You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
I'm using Vue, so terms may get confused. Essentially, happy-dom doesn't set loading attribute on img to be eager or loading To Reproduce
Steps to reproduce the behavior:
Set attribute loading on to be "lazy"
attribute loading does not become lazy
Expected behavior
A clear and concise description of what you expected to happen.
Attribute loading should become lazy Screenshots
If applicable, add screenshots to help explain your problem.
Ask if wanted Device:
OS: [e.g. iOS] Linux mint
Browser [e.g. chrome, safari] Chrome,
Version [e.g. 22]
Additional context
Add any other context about the problem here.
My Vue test
it('has attr loading to be lazy when prop lazy',()=>{constwrapper=mount(BImg,{props: {lazy: true},})expect(wrapper.attributes('loading')).toBe('lazy')})it('has attr loading to be eager when prop lazy false',()=>{constwrapper=mount(BImg,{props: {lazy: false},})expect(wrapper.attributes('loading')).toBe('eager')})it('has attr loading to be eager by default',()=>{constwrapper=mount(BImg)expect(wrapper.attributes('loading')).toBe('eager')// In my code prop loading is undefined === prop loading is false})
When using happy-dom, all of these "loading" attributes become undefined. Lazy on becomes loading="lazy", lazy off becomes loading="eager". Neither are made
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
I'm using Vue, so terms may get confused. Essentially, happy-dom doesn't set loading attribute on img to be eager or loading
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Attribute loading should become lazy
Screenshots
If applicable, add screenshots to help explain your problem.
Ask if wanted
Device:
Additional context
Add any other context about the problem here.
My Vue test
When using happy-dom, all of these "loading" attributes become undefined. Lazy on becomes loading="lazy", lazy off becomes loading="eager". Neither are made
The text was updated successfully, but these errors were encountered: