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
However, with deno-dom, this puts me into an infinite loop, as el.firstChild never returns a falsy value. I assume this is due to the underlying childNodes not being updated.
The text was updated successfully, but these errors were encountered:
I was able to reproduce it, thanks for reporting it. I'll push a fix hopefully later today
b-fuze
changed the title
Bug: childNodes NodeList is not "live"
Bug: insertBefore doesn't remove the inserted node from the original parent node
Jun 16, 2022
I am trying to unwrap a node (e.g. move all its content to the parent node), also see #106
The easiest implementation would be something like this, with el being any element that has a parent
Also see
However, with deno-dom, this puts me into an infinite loop, as
el.firstChild
never returns a falsy value. I assume this is due to the underlyingchildNodes
not being updated.The text was updated successfully, but these errors were encountered: