[..] equation is an equality containing one or more variables. Solving the equation consists of determining which values of the variables make the equality true.
Consider a univariate equation $f(x) = 0$ with $f:D \rightarrow \mathbb{R}$ and say we want to solve the equation over $x \in A$. As I understand it, for every $x \in A$ we have a condition $f(x) = 0$ and we have to verify whether it is true. But if $\exists x \in A: x \not\in D $, then there is no condition! Does that mean that the equality is vacuously true? I can't see why not.
But in school, if we solve something like $\frac{1}{x} = 0$, the answer is there is no solution, and, specifically, $x = 0$ is not a solution. This contradicts the above reasoning.
When $x\not\in D$ the formula $(\forall x)[x\in D \Rightarrow f(x)=0]$ is vacuously true.