My question is about the well-definedness of zeros and poles of rational functions following Vakil's Rising Sea (November 18, 2017 Edition).
On a regular codimension $1$ point $p$, we define the number of zeros resp. poles of an element $f \in \operatorname{Quot}(\mathcal{O}_{X,p})$ via the discrete valuation given by the DVR $\mathcal{O}_{X,p}$ (p. 353). In algebraic geometry, one then usually considers some rational function $s$ and tries to analyze the number of zeros and poles of $s$. I'm confused in how this makes sense, i.e. why is $s$ naturally an element in $\mathcal{O}_{X,p}$?
Let me also recall quickly the definition of rational functions in Vakil's book. On p. 171 we define a rational function on a scheme $X$ as an equivalence class of pairs $(U, s \in \Gamma(U, \mathcal{O}_X))$ where $\operatorname{Ass}(X) \subseteq U$. Two pairs $(U,s)$ and $(U',s')$ are said to be equivalent if $s|_{U \cap U'} = s'|_{U \cap U'}$. I'm guessing that my confusion stems from an insufficient understanding of associated points.
So to summarize: Given a rational function $s \in \Gamma(U,\mathcal{O}_X)$ with $\operatorname{Ass}(X) \subseteq U$, why is $s$ naturally an element of $\operatorname{Quot}(\mathcal{O}_{X,p})$ for all regular codimension $1$ points $p$?