For whatever reason, a condition is returning false
when by all my accounts, it should be true. It's just a simple string comparison; and Chrome gets it right.
In the IE developer tools, I put a breakpoint on the line, and tried different things. Here's the output:
The code this is getting called from is a jQueryUI widget. Here's the full block that the code is running in. I can post the entire widget if that's helpful.
this.element.children('option').each(function() {
if ($(this).text() === select.val()) { // Why does this evaluate to false?!?!?
$(this).text(value)
ctl._trigger('select', event, {
item: this
});
return false;
}
});
Does $(this).text.match(/[\w ]+/)[0]
and select.val().match(/[\w ]+/)[0]
return the same thing?
I believe some of you space-like characters aren't spaces.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With