Making sure that fragments that are parsed have a root node in the document they're in.