Anyone else have issues with the new JSON encoding in 5.1?

I upgraded an application when a block is returned that has a
JavaScript link in it with single quotes, IE8 (haven't tested other
versions of IE) puke on it.

For example, this snippet in the block:

<a href="" onclick="openWindow('winname')">Click me</a>

Gets returned in T5.1.0.5 as:

<a href='' onclick='openWindow(&apos;winname&apos)'>Click me</a>

Gets returned in T5.0.18 as:

<a href="" onclick="openWindow('winname')">Click me</a>

Firefox 3.5 handles both OK.

Any work around that people know of off-hand besides going back to
T5.0?  Only thing I've found so far is to swap out single/double
quotes in my .tml files like so:

<a href="" onclick='openWindow("winname")'>Click me</a>

But that's a major PITA in a large application.

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to