I've refactored enter. I don't think we need any special error to be thrown if both parent + after are missing since there could be a deeper error incase an empty jqLite/jQuery object wrapper is provided anyway, or if a comment node is in place.