insertAfter now correctly uses the parent list of acceptable mediatypes