code: def getFragment(self):
          
          # assert self.innerHTML
          fragment = self.fragmentClass()
          self.openElements[0].reparentChildren(fragment)
          return fragment
docs: Return the final fragment