dolphinling wrote: > Suppose HTML were extended so that <li> had to be a descendant of <ul>, but not > necessarily a child: there could be another element (or multiple elements) > between them. Is there any way to reliably select the <li>(s) in that case? ul#a>li, ul#a *:not(ol):not(ul) li { } Selects the direct li-children, and all li-descendants which aren't descendants of a descendant-list. (Pretty close to Björn's solution, but without the direct child selector between :not and li.) SanderReceived on Saturday, 2 September 2006 16:36:29 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 September 2008 23:28:52 GMT