docs: def source(self):
          """The source element this document element was created from."""
          if self._source is not None:
              return self._source
          elif self.parent is not None:
              return self.parent.source
          else:
              return Location(self)