i've fixed my example a bit (previous example didn't really include all cases): http://mootools.net/shell/D7gWW/5/ i assume a better implementation will be to actually parse the selector instead of doing a complete search but this is just a proof of concept... ----------- אריה גלזר 052-5348-561 5561
On Mon, Mar 1, 2010 at 13:56, אריה גלזר <[email protected]> wrote: > hey. > i've noticed a faulty behavior with Element.match - it doesn't support > complex selectors. > I've also thought that it should be possible to check an element in > relation to a selected parent. > I've implemented an example implementation here: > http://mootools.net/shell/D7gWW/3/ > I'm not sure this is the best way to do this, but i thought it as a nice > concept to share. > ----------- > אריה גלזר > 052-5348-561 > 5561 >
