Return :const:`True` if this is a same-document reference.

def issamedoc(self):
        """Return :const:`True` if this is a same-document reference."""
        return (self.scheme is None and self.authority is None and
                not self.path and self.query is None)