W3C home > Mailing lists > Public > www-style@w3.org > April 2007

Re: Select a parrent node with s CSS selector?

From: Kang-min Liu <gugodliu@gmail.com>
Date: Tue, 24 Apr 2007 20:01:48 +0800
Message-ID: <73aa7c7b0704240501o6662fdfu50b28d222f63f50e@mail.gmail.com>
To: www-style@w3.org

Rather then use "<" to select parent element, I find it more sane to use
some special sort of mark the one you want in the search path of a selection.

I'd propose using a pair of () as the real target of a selector:

    body>div.content (a:link) > p.description

The overhead of this implementation may just be one more variable to hold
the target.

Kang-min Liu
Received on Tuesday, 24 April 2007 13:15:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:28 UTC