diff --git a/_delb/xpath/__init__.py b/_delb/xpath/__init__.py
index efb1804d..b7cffbf3 100644
--- a/_delb/xpath/__init__.py
+++ b/_delb/xpath/__init__.py
@@ -167,7 +167,7 @@ def size(self) -> int:
# TODO make cachesize configurable via environment variable?
@lru_cache(maxsize=64)
def _css_to_xpath(expression: str) -> str:
- return _css_translator.css_to_xpath(expression, prefix="descendant-or-self::")
+ return _css_translator.css_to_xpath(expression, prefix="descendant::")
def evaluate(
diff --git a/docs/conf.py b/docs/conf.py
index a07204dc..919b0648 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -276,7 +276,7 @@ def predicate(self, name, attr, meta):
and meta.get("category") is None
and is_really_public(name)
# deprecation wrapper from 961b8b822ed9d8e33a4f9a63b71e64f30188cc67
- and not attr.__qualname__.startswith("_better")
+ and not getattr(attr, "__qualname__", "").startswith("_better")
)
diff --git a/docs/rtd-dependencies.txt b/docs/rtd-dependencies.txt
index e9cc7b0b..5c58325a 100644
--- a/docs/rtd-dependencies.txt
+++ b/docs/rtd-dependencies.txt
@@ -1,5 +1,5 @@
-autoclasstoc>=1.1.1
-requests
-sphinx>=3
+autoclasstoc @ git+https://github.com/kalekundert/autoclasstoc.git@ba868daf4fecc72bd1a8957c565760d4c41eb71a
+httpx[http2]
+sphinx
sphinxcontrib-fulltoc
sphinx-readable-theme
diff --git a/pyproject.toml b/pyproject.toml
index 481fc3f5..1cdeb427 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -107,9 +107,10 @@ dependencies = ["cff-from-621"]
skip-install = true
[tool.hatch.envs.docs]
-python = "3.10" # TODO drop when a successor of 1.5.2 is released, also mind .github/workflows/quality-checks.yml
+ # TODO drop when a successor of 1.5.2 is released, also mind .github/workflows/quality-checks.yml and docs/rtd-dependencies.txt
+python = "3.10"
dependencies = [
- # TODO switch to PyPI when this is fixed:
+ # TODO switch to PyPI when this is fixed: https://github.com/kalekundert/autoclasstoc/issues/33
"autoclasstoc @ git+https://github.com/kalekundert/autoclasstoc.git@ba868daf4fecc72bd1a8957c565760d4c41eb71a",
"sphinxcontrib-fulltoc",
"sphinx-readable-theme"
diff --git a/tests/test_attributes.py b/tests/test_attributes.py
index ab8b3beb..4fecc31d 100644
--- a/tests/test_attributes.py
+++ b/tests/test_attributes.py
@@ -63,7 +63,7 @@ def test_attribute_object():
def test_delete_namespaced_attribute():
root = Document('