[TYPO3-core] FYI: Added feature #14058: htmlArea RTE: update some WebKit dom methods
Stanislas Rolland
typo3 at sjbr.ca
Sun Apr 11 02:30:24 CEST 2010
Steffen,
>>> sry for nitpicking, could you use the === operator?
>>> + if (node.nodeType == 3 || node.nodeType == 8 ||
>>> node.nodeType == 4) {
>>>
>> Why? nodeType is of type number:
>> http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-111237558
>>
>
> exactly for this reason: Returns true if the operands are strictly equal
> with no type conversion (which is the case here)
>
In the present case, no type conversion will occur because the two
operands are of the same type.
Stan
More information about the TYPO3-team-core
mailing list