Skip to content

Commit 3d47422

Browse files
committed
Remove all navigation roles
1 parent 6db6598 commit 3d47422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _clean_body(self, body):
7979
This will mutate the original `body`.
8080
"""
8181
# Remove all navigation nodes
82-
nodes_to_be_removed = body.css('div[role=navigation]')
82+
nodes_to_be_removed = body.css('[role=navigation]')
8383
for node in nodes_to_be_removed:
8484
node.decompose()
8585

0 commit comments

Comments
 (0)