fixed doc frag (shadow dom) bug