I assume what's going on here is that WO 5.4 is running attributes as
though it were escapeHTML = true, maybe? You should do a test with
WOString with value = "'" with escapeHTML = true and false and
see if you ever get it to render an apostrophe. This is a tough call,
actually, as to how WO should be handling this, but it SEEMS to me
that it should be letting XML process this first and ' should
turn into ';' ... Who knows what breaks if they do that though. For
instance, in a string value might cause the XML parser to blow
up, so they might have to preprocess and turn & into & before it
goes into the XML parser or something.
ms
On Nov 26, 2007, at 1:05 PM, Les Vogel wrote:
> No shit. The workaround is to not use either, and just invoke a
> function that's protected:
>
> <script type="text/javascript">
> // <![CDATA[
> function LVF1(v)
> {
> $('value').innerHTML = Math.floor(v);
> }
> function LVF2(request)
> {
> Effect.Highlight('tableRows');
> }
> function LVF3(request)
> {
> $('editor').hide();
> }
> // ]]>
> </script>
>
>
> On 11/26/07, Mike Schrag <mschra..dimension.com> wrote:
> So neither ' NOR ' work? That's really unfortunate ...
>
> On Nov 26, 2007, at 12:59 PM, Les Vogel wrote:
>
>> It doesn't work at runtime. I thought it was OK as I was running
>> some, but when I coded up a page using strict at the top, it didn't
>> make it through WO's parser.
>>
>> On 11/26/07, Mike Schrag <mschra..dimension.com> wrote:
>> > Sigh - Well, it doesn't always work. Argh! It is just passing
>> > ' as is, and complaining about '
>> >
>> > onclick="function (v) { $('value').innerHTML = Math.floor(v) }"
>> >
>> > I guess the only way to deal with this is to code this stuff in a
>> > way that only invokes functions w/o '', that's going to be fun.
>> Wait, do you mean it doesn't work at RUNTIME or it doesn't work in
>> WOLips (i.e. validator error). I've removed the validation error for
>> ' so that problem should go away in last night's build ...
>>
>> ms
>>
>>
>>
>>
>> --
>> Les Vogel
>> 808 870-0418
>
>
>
>
> --
> Les Vogel
> 808 870-0418
This archive was generated by hypermail 2.0.0 : Mon Nov 26 2007 - 13:17:33 EST