Hmm.. This SORT OF sounds like a bug. I would have thought single
quote would actually be valid inside of a quoted string. I'm not sure
why it would complain about single quotes in there. I'll have to take
a look. And this only happens when WO 5.4 validation is specifically
turned on?
On Oct 29, 2007, at 7:32 PM, Brendan Duddridge wrote:
> Hi,
>
> In WOLips on Leopard, I turned on the WO 5.4 validation. Now on my
> components that have inline javascript, I get an error: "The
> character ''' must be escaped"
>
> Here is a sample bit of HTML:
>
> <a href="#" onclick="itemView.activateTab('tab1');
> itemView.findProductMatches();">Matches</a>
>
>
> I'm not sure if I should be using "e; or not to properly escape
> the single quotes. After all, WO templates in WO 5.4 now need to be
> valid XML documents as far as I know. I've already been converting
> all my <br> tags to <br /> to clean things up.
>
>
> I tried backslash quote ( \' ), but it didn't make the validator
> happy. So what is the correct syntax?
>
> This syntax does validate, but I'm just wondering if it's correct:
>
> <a href="#" onclick="itemView.activateTab("tab1");
> itemView.findProductMatches();">Matches</a>
>
> Will WO properly render the page with the quotes unescaped so the
> javascript will function properly at display time?
>
>
> Thanks,
>
>
> ____________________________________________________________________
> Brendan Duddridge | CTO | 403-277-5591 x24 | brenda..lickspace.com
>
> ClickSpace Interactive Inc.
> Suite L100, 239 - 10th Ave. SE
> Calgary, AB T2G 0V9
>
> http://www.clickspace.com
>
This archive was generated by hypermail 2.0.0 : Mon Oct 29 2007 - 19:46:03 EDT