docs: def getElementById(self, id: str) -> Optional[Node]:
          """Get element by ``id``.
  
          If this document does not have the element with the id, return None.
          """
          elm = getElementById(id)
          if elm and elm.ownerDocument is self:
              return elm
          return None