tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Stanton (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2764) single quote escapted to &apos; causes issues in ie8
Date Mon, 31 May 2010 05:59:36 GMT
single quote escapted to &apos; causes issues in ie8

                 Key: TAPESTRY-2764
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2764
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 5.1
         Environment: ie8 browser
            Reporter: Paul Stanton

Tapestry escapes single quotes in attribute values using &apos; which causes issues in
ie8. the correct technique to avoid the ie8 issue is to use the hex number in the ascii reference.

for example the content of the zone

<t:zone ...>
   <a href="" onclick="alert('hi'); return false;">hi</a>

will be encoded into the following string within the JSON in the XHR response:

"<a href='' onclick='alert(&apos;hi&apos;); return false;'>hi</a>"

This will cause a syntax error in ie8.


line 136
change to

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message