safari says 3 for
javascript:alert("hello there Opera".split(/(\s+)/).length)


On 6/10/07, Matt Stith <[EMAIL PROTECTED]> wrote:

why not just use /(\s+)/ in firefox too then? It gives me the correct
number of 5.

On 6/10/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
>
> javascript:alert("hello there Opera".split(/\b/).length)
>
> Firefox says 5 , safari says 6, Opera says 15!
>
> it really got me confused while writing some jQuery code!
>
> now I use $.browser.opera ? /(\s+)/ :  /\b/ ; instead.
>
> Ouch, I didn't realize there was that much of a difference!
>
>



--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to