Hi Guillermo,
thanks for your answer. But what about:
http://mootools.net/docs/Element/Element#Element:match
It states:
"match - can be a string or element
* (string) The tag name to test against this element. If Selectors
is included, any single CSS selectors may also be passed.
* (element) An element to match; returns true if this is the
actual element passed in."
and again in the following examples
"Using an Element:
var el = $('myDiv');
$('myDiv').match(el); //Returns true
$('otherElement').match(el); //Returns false"
Is it a wrong/out of date documentation (at least according to you)?
On 7 Dic, 03:12, "Guillermo Rauch" <[EMAIL PROTECTED]> wrote:
> That's not how match works. match expects a selector (string)It's returning
> true because of the last line of the function:
>
> return (parsed) ? Selectors.Utils.filter(this, parsed, {}) : *true*;
>
> since the selector is not being parsed (you're supplying an element), true
> is returned.
>
> --
> Guillermo Rauchhttp://devthought.com