Assume $h$ is a function on an open interval $K$, and differentiable on $K$. Therefore $h'$ is cont on $K$.
The faulty proof goes as follows:
Let $a\in K$
By the definition of the derivative:
$$h'(a)=\lim_{x\to a}\frac{h(x)-h(a)}{x-a}$$
Since $h$ is cont, limit of numerator is $0$, same goes for denominator. Since $h$ is diff, we can apply LH rule.
$$h'(a)=\lim_{x\to a}\frac{h(x)-h(a)}{x-a}\to(LH)\to \lim_{x\to a}\frac{h'(x)-0}{1-0}=\lim_{x\to a}h'(x)$$
We have proven that $h'(a)=\lim_{x\to a}h'(x)$. By defn, $h'$ is cont.
There is an error in the proof, and I also need to fix the proof.
I don't see something right away.
My guess is that $x-a\neq 0$, but I am not sure how to prove this.