Describe the bug
When I run the same component in browser first is called attributeChangedCallback and then connectedCallback. Inside happy-dom it's otherwise
Expected behavior
Order of calls is the same for browser and test environment
Screenshots
Device:
OS: OSX
Browser Chrome, Firefox, Happy-Dom
Additional context
I have checked Chrome and Firefox, it seems connected callback is called after. Maybe it's not a bug but connected to setting body by innerHTML?
Describe the bug When I run the same component in browser first is called attributeChangedCallback and then connectedCallback. Inside happy-dom it's otherwise
To Reproduce Steps to reproduce the behavior:
Minimal repro: https://github.com/Mighty683/happy-dom-repro Run
dev
andtest
check console of bothExpected behavior Order of calls is the same for browser and test environment
Screenshots![obraz](https://github.com/capricorn86/happy-dom/assets/22498910/9ed47654-c973-491b-a009-2ce5413c739a)
Device:
Additional context I have checked Chrome and Firefox, it seems connected callback is called after. Maybe it's not a bug but connected to setting body by
innerHTML
?