I am looking to retrieve the first matching element, followed by the second, and so on, using the following CSS selector:
[att]
While the selectors below are not valid CSS3 selectors, they represent what I aim to achieve:
[att][0]
[att][1]
...
[att][n]
Is it possible to combine multiple selectors and iterate over each matching node in a similar manner as shown in the example above?
[att1],[att2]
If performing this task is not feasible with native DOM or CSS3 selectors, an XPath query can also be considered.