A
Andrew Cowper
Anyone come across anything like this before? This is some javascript
validation of user input.
If ch is a question mark character, the test passes and false is
returned.
if ((ch==">") || (ch=="<") || (ch=="\\") ||
(ch=="|") || (ch=="\"") || (ch=="¦")) {
return false;
}
The problem is that the character '¦' is testing as equal to '?'. This
character is Latin 1 A6.
if ("?"=="¦") { alert("Holy Smoke!"); }
It seems to only happen on IE6 (I've tried 6.0.2800.1106).
Anyone got any thoughts?
Thanks
Andrew Cowper
validation of user input.
If ch is a question mark character, the test passes and false is
returned.
if ((ch==">") || (ch=="<") || (ch=="\\") ||
(ch=="|") || (ch=="\"") || (ch=="¦")) {
return false;
}
The problem is that the character '¦' is testing as equal to '?'. This
character is Latin 1 A6.
if ("?"=="¦") { alert("Holy Smoke!"); }
It seems to only happen on IE6 (I've tried 6.0.2800.1106).
Anyone got any thoughts?
Thanks
Andrew Cowper