Move more <input> logic from input() to element()