In Hartshorne, Ex II.5.14, he defines that a closed subscheme $X \in \mathbb{P}^r_A$ is called projectively normal if the homogeneous coordinate ring $S(X)$ is integrally closed. This is also given by many notes and in wikipedia. But the denominators of elements of the fraction field of $S(X)$ may not be homogeneous, which makes things funny and the problem difficult to solve.
My question is whether this definition is the right one. If yes, how does it make sense? If no, what is the common way to fix the definition?