The reason this is special to the `edit.lastChild` case is that if the edit says to insert an element afterID: 123, then that means insert the element immediately after 123. If there was a text after 123, the element will be added before that text naturally.

We actually don't use afterID for elementInserts. It's always either beforeID or lastChild.