You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Paul Stanton (JIRA)" <de...@tapestry.apache.org> on 2010/05/31 07:59:36 UTC

[jira] Created: (TAPESTRY-2764) single quote escapted to ' causes issues in ie8

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>
</t:zone> 

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.

PATCH:

Tapestry 5.1.0.5,
org.apache.tapestry5.dom.AbstractMarkupModel
line 136
builder.append("&apos;");
change to
builder.append("&#39;"); 

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


[jira] Commented: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Paul Stanton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877190#action_12877190 ] 

Paul Stanton commented on TAP5-1175:
------------------------------------

thanks igor, sorry i didn't find this bug before. i've patched my app and am awaiting the 5.1.06 release!

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>            Assignee: Igor Drobiazko
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Assigned: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAP5-1175:
------------------------------------

    Assignee: Igor Drobiazko

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>            Assignee: Igor Drobiazko
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Moved: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk moved TAPESTRY-2764 to TAP5-1175:
----------------------------------------------

              Project: Tapestry 5  (was: Tapestry)
                  Key: TAP5-1175  (was: TAPESTRY-2764)
    Affects Version/s: 5.1
                           (was: 5.1)

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Moved: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk moved TAPESTRY-2764 to TAP5-1175:
----------------------------------------------

              Project: Tapestry 5  (was: Tapestry)
                  Key: TAP5-1175  (was: TAPESTRY-2764)
    Affects Version/s: 5.1
                           (was: 5.1)

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Commented: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Paul Stanton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877190#action_12877190 ] 

Paul Stanton commented on TAP5-1175:
------------------------------------

thanks igor, sorry i didn't find this bug before. i've patched my app and am awaiting the 5.1.06 release!

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>            Assignee: Igor Drobiazko
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Assigned: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAP5-1175:
------------------------------------

    Assignee: Igor Drobiazko

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>            Assignee: Igor Drobiazko
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Closed: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko closed TAP5-1175.
--------------------------------

    Resolution: Duplicate

It has been fixed in 5.2 trunk. See TAP5-714

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>            Assignee: Igor Drobiazko
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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


[jira] Closed: (TAP5-1175) single quote escapted to ' causes issues in ie8

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko closed TAP5-1175.
--------------------------------

    Resolution: Duplicate

It has been fixed in 5.2 trunk. See TAP5-714

> single quote escapted to &apos; causes issues in ie8
> ----------------------------------------------------
>
>                 Key: TAP5-1175
>                 URL: https://issues.apache.org/jira/browse/TAP5-1175
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: ie8 browser
>            Reporter: Paul Stanton
>            Assignee: Igor Drobiazko
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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>
> </t:zone> 
> 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.
> PATCH:
> Tapestry 5.1.0.5,
> org.apache.tapestry5.dom.AbstractMarkupModel
> line 136
> builder.append("&apos;");
> change to
> builder.append("&#39;"); 

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