Gathers all input values within the element called upon and returns an object mapping names to values.