[TYPO3-core] FYI: Added feature #14058: htmlArea RTE: update some WebKit dom methods
Stanislas Rolland
typo3 at sjbr.ca
Sun Apr 11 03:36:50 CEST 2010
Hi Steffen,
>
> yes, and because of that the strict comparison in js is faster than the
> simple one. That's what i use and what jslint is telling me.
>
> Maybe it's only cosmetic, but i try to use strict comparison in js as
> often as possible. If you think i'm wrong let me know ;)
>
You may be right, but for the wrong reason. ;)
According to this report:
http://www.adequatelygood.com/2010/3/Performance-of-vs-
there is no significant performance difference between == and === when
the two operands are of the same type.
Using strict equality might be better practice. However, I think the
best practice would be to avoid comparing things that are not of the
same type. I agree with you that doing so is kind of conceptually sloppy.
Regards,
Stanislas
More information about the TYPO3-team-core
mailing list