[utils] Fix and improve `find_element` and `find_elements` (#11443)
commitb103aca24d35b72b405c340357dc01a0ed534281
authorbashonly <88596187+bashonly@users.noreply.github.com>
Sun, 3 Nov 2024 18:19:45 +0000 (3 18:19 +0000)
committerGitHub <noreply@github.com>
Sun, 3 Nov 2024 18:19:45 +0000 (3 18:19 +0000)
tree5635526925bd1b8bf618e0b8746a0553a2aaff8f
parent5c7a5aaab27e9c3cb367b663a6136ca58866e547
[utils] Fix and improve `find_element` and `find_elements` (#11443)

Fix d710a6ca7c622705c0c8c8a3615916f531137d5d

Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
test/test_traversal.py
yt_dlp/utils/traversal.py