Stub out the method in TransitionElement rather than the DOM API.