[selectors4] :not(a, b) vs. :not(a):not(b)

Hi,

Selectors 4 extends :not() so its argument is a selector list. As I read 
it, it’s just syntaxic sugar for multiple :not() pseudo-classes. In 
other words, :not(a, b) is equivalent to :not(a):not(b), just like not(a 
or b) is not(a) and not(b) in boolean logic. Is this correct?

If so, it might be worth pointing out in the spec. Maybe in the 
html|*:not(:link):not(:visited) example, by saying that it can also be 
written html|*:not(:link, :visited)

Cheers,
-- 
Simon Sapin

Received on Tuesday, 19 March 2013 09:28:05 UTC