Isn't length a property, not a function (use $(...).length, not $
(...).length() )

On Mar 6, 10:12 am, Yansky <[EMAIL PROTECTED]> wrote:
> This isn't a problem as such, just something I'm curious about.
>
> Under IE7 I've found that when I use xpath, the length() method
> doesn't seem to work, but size() does.
>
> E.g.
>
> $( '//[EMAIL PROTECTED] "indexL2"]//a').length(); doesn't seem to work, but $
> ( '//[EMAIL PROTECTED] "indexL2"]//a').size(); does.
>
> I was just wondering why that is? Is it something to do with the fact
> that the xpath has to be converted to regular DOM getters for IE in
> the jquery code?

Reply via email to