Make wrapWith compatible with Elements