>On Wed, 10 Sep 2008 20:03:40 +0100, Aaron Gray wrote:
>> I have written the beginnings of a tree control widget. It works on all
>> modern browsers
>> bar IE. I was trying to get what I had written to work on IE then I tried
>> it on FF and
>> friends and it worked fine, only to find out the IE, even IE 7 does not
>> support CSS
>> Child Selectors ! Trust Micro$oft not to implement standards properly.
>>
>> Anyway I have three classes and the following CSS :-
>>
>> div.tree-node-elements {
>> display: none;
>> margin-left: 14pt;
>> }
>> tree-node-collapsed > tree-node-elements {
>> display: none;
>> }
>> tree-node-expanded > tree-node-elements {
>> display: block;
>> }
>
>[rest of code snipped]
>
>
>> I was wondering whether there is a work around at all, otherwise I will
>> have to
>> refactor and generalize my code.
>>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>I have no experience with tree controls, but something like this
>*may* help:
>
>.tree-node-collapsed .tree-node-elements {display: none;}
>.tree-node-collapsed * .tree-node-elements {display: block;}
No :(
I did a full binary expansion of combinations to a depth of three and that
worked to a depth of three, but the cases double in size every extra level
of depth. I was wondering whether there was a shorted selector case that
would work, but it does not look like it.
>Kinda-sorta emulates child node selectors(?)
>
>P.S. I thought that IE7 supports child selectors?
No it seems that it does not :(
>FWIW - Microsoft claims only to support CSS 1 in IE 6, not level 2.
Right.
I am going to have to rewrite my javascript code.
Thanks David,
Aaron
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/