I've been trying to select a specific node using two not clauses, but so far I haven't had any luck. What I'm attempting to achieve is selecting an element whose div contains the string 0008, but it's not 10008 and also does not contain the tag "style". In theory, it should work like this:
document.querySelectorAll(" div[id*='0008']:not([id='10008'][style])")
However, as expected, it doesn't quite work out that way.
document.querySelectorAll(" div[id*='0008']:not([id='10008'])")
document.querySelectorAll(" div[id*='0008']:not([style])")
Individually, both of them work perfectly fine, of course.