F
F. Da Costa
Hi all,
Following two sniperts of code I'm using and getting very interesting results from.
..html
<tr id="1" class="segment" open="false">
This is the segment under 'investigation'
..js
if (segmentRows.open || segmentRows.open=='true') doWhatever();
When running this if statement (made sure that above <tr> is contained in segmentRows) Gecko processes this properly.
As in it *does not* enter the if.
IE 5+ on the other hand alerts (as in debug) me that segmentRows.open evaluates to false and subsequently does *not*
have any trouble entering the if statement.
I know this sounds strange but it *is* actually taking place.
Once again this exact same code is *processed correctly by Gecko*.
Is this a known thing, should I not rely on boolean stuff or ...?
Any suggestions are appreciated.
TIA
Fermin DCG
Following two sniperts of code I'm using and getting very interesting results from.
..html
<tr id="1" class="segment" open="false">
This is the segment under 'investigation'
..js
if (segmentRows.open || segmentRows.open=='true') doWhatever();
When running this if statement (made sure that above <tr> is contained in segmentRows) Gecko processes this properly.
As in it *does not* enter the if.
IE 5+ on the other hand alerts (as in debug) me that segmentRows.open evaluates to false and subsequently does *not*
have any trouble entering the if statement.
I know this sounds strange but it *is* actually taking place.
Once again this exact same code is *processed correctly by Gecko*.
Is this a known thing, should I not rely on boolean stuff or ...?
Any suggestions are appreciated.
TIA
Fermin DCG