handle case where there is a document fragment
add test case exercising document fragment change