Using documentfragment/element instead of string