Changes in Document and fragment