diff --git a/qutebrowser/browser/webkit/webelem.py b/qutebrowser/browser/webkit/webelem.py index bb671b346..3bfee31d2 100644 --- a/qutebrowser/browser/webkit/webelem.py +++ b/qutebrowser/browser/webkit/webelem.py @@ -84,7 +84,9 @@ class WebElementWrapper(collections.abc.MutableMapping): self._elem = elem def __eq__(self, other): - return self._elem == other._elem + if not isinstance(other, WebElementWrapper): + return NotImplemented + return self._elem == other._elem # pylint: disable=protected-access def __str__(self): self._check_vanished()