Insert the right phantom element in InTableBody mode
Implement most of "reset insertion mode appropriately"
Split the tree builder into more files