Re: [css3-selectors] Selector grammar: negation

>> Does a selector like
>> 
>>   not( DIV[test] > P )
>> 
>> exist, representing all elements but P elements which have a parent DIV
>> with attribute test?
>
>Yes, it's called the negation pseudo-class
>http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#negation

but DIV[test] > P is not a simple selector. The negation pseudo-class
only takes a simple selector as its argument according to [1]. 

Also, pseudo_class is explicitly mentioned in the
simple_selector_sequence production, where the negation pseudo-class is
part of. But the negation non-terminal in the cited production is not
defined, hence my original question.

[1] <http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#negation>

Regards, Christian.

Received on Saturday, 28 August 2004 10:48:10 UTC