plone / blocks-conversion-tool

A tool to convert HTML (as used in Plone Classic) to Blocks (as used on Volto)
7 stars 5 forks source link

fix: Fixed a bug where some nodes could be skipped after converting an element to a block #42

Closed davisagli closed 9 months ago

davisagli commented 9 months ago

This is the old "don't mutate a list while iterating over it" bug. Using Array.from creates a new list of the children which will not be mutated when the DOM is later modified.