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 1 year ago

davisagli commented 1 year 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.