mml-io / mml

Metaverse Markup Language
https://mml.io
MIT License
120 stars 13 forks source link

Fix unknown previous sibling error #194

Closed MarcusLongmuir closed 3 weeks ago

MarcusLongmuir commented 4 weeks ago

This PR fixes an issue where a series of mutations could throw errors because the previous sibling that was referenced in the MutationRecord from the MutationObserver in the runner would not actually be a sibling of the nodes being added (nor would it be a child of the target / parent).

The fix is to use the current (eventual state) previous sibling of the first addedNode.


What kind of changes does your PR introduce? (check at least one)

Does your PR introduce a breaking change? (check one)

Does your PR fulfill the following requirements?