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
mdafanasev
changed the title
Call of insertBefore with a comment node causes duplication of node
insertBefore with a comment node causes duplication of node
Apr 13, 2024
Description
Using
insertBefore
with a comment node results in copying the target node instead of moving itSteps to reproduce
Expected result:
The target node should be moved or remain untouched
Actual result:
The target node is duplicated
Reproduction
I have created a repository with a minimal reproduction of the issue
https://github.com/mdafanasev/happy-dom-insert-before-comment-issue
Environment
@happy-dom/global-registrator: 14.7.1
NodeJS: 20.11.0
The text was updated successfully, but these errors were encountered: