Re: [selectors] Tree selectors

On Mon, 21 Mar 2005, Anne van Kesteren wrote:
> 
> ... I think some :depth(arg) pseudo-class or other method should be 
> designed to have similar options for trees.

This has been suggested before, but no solid proposal has been suggested 
yet. The problems lie in deciding where the counting should start, so as 
to correctly handle things like:

   <ul>
    <li>
     <ul>
      <li>
       <div>
        <ul>
         <li>

...or:

   <section>
    <h/>
    <section>
     <h/>
     <section>
      <h/>
      <section>
       <div>
        <h/>
       </div>

Proposals welcome.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 21 March 2005 11:16:11 UTC