  We prove that smooth $C^\infty$ functions are dense in weighted fractional
Sobolev spaces on an arbitrary open set, under some mild conditions on the
weight. We also obtain a~similar result in non-weighted spaces defined by some
kernel similar to $x\mapsto |x|^{-d-sp}$. One may consider the results to be
a~version of the Meyers--Serrin theorem.
