dojo master regexp your arse, glasshoppa!
Dojo Toolkit and Regexp monster child runs amok. Citizens terrified. Where will it stop??
I want to put ‘>=2 ‘ in a combobox.
Dojo master say no.
In fact, it seems to be escaping any even vaguely ‘dodgy’ characters. I can’t put < in, fair enough. I can’t put & in. I tried ‘<‘ even. It converts that to & lt; but it won’t resolve anything with an ampersand in either.
This bug, and yes I say it IS a bug, is bugging the arse off me.
bloody wordpress is at it too! Leave me the hell alone! What is wrong with you people?!?!



January 13th, 2008 at 23:26
You can enter it as an escaped character sequence.
‘\x3C’ is less-than, if you like hexadecimal (I do).
http://www.c-point.com/javascript_tutorial/special_characters.htm
January 13th, 2008 at 23:42
If dojo didn’t ignore escaped characters, that would be so kewl.
put ‘\x3c 70′ into a select option, and you get ‘\x3c 70′ rendered in your combo box. Nice.
It ignores me. How rude!
There must be some special dojo thing.
January 14th, 2008 at 16:23
Ah.
It’s been fixed in the nightlies. I was hoping that this one line fix would do it:
http://trac.dojotoolkit.org/ticket/5501
but it seems you need the full on latest greatest version..
http://trac.dojotoolkit.org/changeset/11949