Let $D=[0,1]$, and $f(x)=x$ if $x$ is rational, $f(x)=1-x$ if $x$ is irrational, at what point of $I$ is $f$ continuous?
I think the answer is $1/2$, using sequential criteria, let $(x_n)$ converges to $1/2$, then no matter $x_n$ is rational or irrational, $f(x_n)$ converges to $1/2=f(1/2)$,
but how about $(x_n)$ is mixed with rational and irrational term, say $x_n=a_n+b_n$, where $a_n$ is rational , $b_n$ is irrational, then $f(a_n+b_n)=a_n+(1-b_n)$, which is not converges to $1/2$, what is wrong with me?