Let $\Omega$ be an open bounded set of $R^n$, and let $\omega$ be an open subset of $\Omega$ s.t $\overline{\omega} \subset \Omega.$
For $f\in H_0^1(\omega)$, it is known that the extension of $f$ to $\Omega$ by $0$ is an element of $H_0^1(\Omega).$
I wonder if the result remains true when we replace $H_0^1$ with $H_0^1\cap H^2$.