It seems that the parseInt(-10,44) return -11 instead of -10. I have noticed this bug on the iPhone 3.0 beta version and tested it on Safari 4 beta too... with the same result. On Safari 3 and on an iPhone 2.x, I have -10 as result. I have submitted this bug on the apple bugreporter too. Regards, Julien
Have you tried with a nightly build of WebKit? I think this was reported as bug 25027 and fixed in r42607 around a week ago.
Ok it works with the nightly builds. Sorry i have found the previous bug *** This bug has been marked as a duplicate of 25027 ***