Help Needed with HTML Lists!
<li>A.</li>
<li><a href="#">B.</a></li>
<li><a class=tr href="#">C.</a></li>
<li class=tr>D.</li>
<li class=notr>E.</li>
I am trying to select all untranslated innerText.
document.querySelectorAll("li:not(.notr):not(.tr)")
The issue arises when the TR class is not present in LI, making it difficult to filter.
li:not(.notr):not(.tr)+li>a:not(.tr)
- results in an empty NodeList.
Although seemingly simple, this question has left me puzzled.