revert document fragment changes