[Prototype-core] Re: $$() and :nth psuedo-elements

2007-03-17 Thread Trevan Richins
Yeah, it is a bit difficult to understand. I've searched the web for explanations and have even discovered inconsistent explanations. Here is how I understand it. The position of the returned elements have to equal an+b for every n >= 0. This is because the nth-child selector is supposed to

[Prototype-core] Opera and prototype

2007-03-17 Thread Trevan Richins
I was playing around with the testing framework and decided to see if I could get it working with Opera and appeared to be successful. But when I ran the tests, opera failed the dom, form, position, and selector tests. Is prototype supposed to support Opera? Trevan P.S. I submitted a patch

[Prototype-core] Re: Opera 9 support

2007-03-17 Thread webbles
I don't know what you've done so far in this aspect but I looked into a few tests (Opera 9, Windows XP). testFormActivating: passed for me testFormRequest All three errors that this test throws are caused by a problem with hasAttribute('method'). It looks like if you don't specify a method for

[Prototype-core] Re: $$() and :nth psuedo-elements

2007-03-17 Thread Andrew Dupont
On Mar 17, 2:57 am, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > OK, start by using the latest version, OK? D'oh! Google has failed me! Both questions answered. On Mar 17, 3:31 am, Trevan Richins <[EMAIL PROTECTED]> wrote: > (position-b)/a >= n (only if (position-b)/a is an integer - no

[Prototype-core] Re: $$() and :nth psuedo-elements

2007-03-17 Thread Trevan Richins
Andrew Dupont wrote: >> This site might be useful:http://gallery.theopalgroup.com/selectoracle/ > > I'd found that site as well, but it seems to get stuff wrong. If I ask > it to explain "ul>li:nth-child(n+2)," it replies with: > Wow, I didn't notice that one. The parseNth code looks better.

[Prototype-core] Re: $$() and :nth psuedo-elements

2007-03-17 Thread Andrew Dupont
This is what I came up with for the XPath version: http://pastie.caboo.se/47671 It's a direct port of the logic of parseNth (albeit not yet tested). I'll look at yours and see if it makes more sense, though. Cheers, Andrew On Mar 17, 4:51 pm, Trevan Richins <[EMAIL PROTECTED]> wrote: > Andrew D