On pg.5 of "Commutative Algebra" by Atiyah-Macdonald, Proposition 1.7 states that
The set $A$ of all nilpotent elements in a commutative ring $R$ is an ideal.
Let $x,y\in A$. Clearly, for any $n\in \Bbb{N}$, $x^n\neq 0$ and $y^n\neq 0$. However, why can't $(xy)^n=x^ny^n=0$? Nowhere is it stated that $R$ is an integral domain. And if $xy\notin A$, then $A$ is not an ideal.
Where am I going wrong?
Thanks in advance!