Suppose you have the following dynamic action form validation rules defined (this is actually text field which is intended to be used as an "other" input when a drop-down has the value of "Other").
<arg1 name="maxlength" key="$
" resource="false" />
(((select == "Other") and (this != null)) or
(select != "Other"))
this.a3 = new Array("orgTypeOther", "The field Organization Type cannot be greater than 255 characters.", new Function ("varName", "this.maxlength='255'; this.test='(((orgType == "Other") and (this != null)) or
(orgType != "Other"))'; return this[varName];"));
It turns out that switching from double-quotes to single-quotes doesn't help, since there are also single-quoted strings within that double-quoted string, so basically it won't work no matter what you do (since backslash-escaping the quotes will cause the validwhen test itself to become invalid.
I propose fixing the escaping, since there may be other validator "var" values with this same problem.