Steps to replicate the issue:
- Open a page which contain a table with <section> tags inside it with VisualEditor
- Click on a cell
- Click on Delete button to remove the table
- Try to Undo (CTRL+Z)
What happens?:
JavaScript error: Uncaught Error: Cannot add a alienBlock node to tableSection node
If there are more than one similar table on the page, that can fully break editing (real example).
What should have happened instead?:
The table should be re-added.
By the way, I would welcome any advice about how to better place the <section> tags for this use case, if that allows to workaround this issue and the first row disabled.