isSpaceOrTab()

Harri Porten porten at froglogic.com
Sat Feb 21 18:46:35 CET 2004


Hi!

I see that JavaScriptCore is using a helper function isSpaceOrTab() rather
than standard isspace() when parsing date strings. What was the reason?
Speed?

Or was there some confusion because of the function name? Note that
isspace() knows about all the character commonly subsumed under the
category "white space". The following works in Konq and Mozille and will
probably fail in Safari:

  document.write(new Date('\n21\rFeb\f\v\t 2004'));

Harri.



More information about the Khtml-devel mailing list