Empty element break the export
I was trying to move an image around in Wax, so i copy pasted the image.
What happened is that it left the caption where is was. So i copied the caption and pasted it in the new figure element.
Which left in place an unselectable / unremovable <figure>
empty element.
So wax should definitely removes any empty figure element on save (and it should also be the case for any empty element: it’s useful to have line breaks when creating the content, but it’s unncessary for all the other situations imho)
As a side note, Wax shouldn’t allow empty elements because the designer will need to go and remove them in editoria to have the best controls on the design.