[ 
https://issues.apache.org/jira/browse/MYFACES-3321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115323#comment-13115323
 ] 

Werner Punz commented on MYFACES-3321:
--------------------------------------

Ok the root cause of this problem, and it only can happen in the head 
replacement code is following.
a) Browsers do not allow a direct head replacement. 

b) Instead the head is more or less generated and then parsed by an xml 
construct (and if not a direct head replacement is tried). The xml construct 
parses the code as xml and during this parsing step a deserialize xml is called 
to get the script text data. This works but it encodes & into amp, now, we do 
not need that for script tags in most cases, a simple xml.text should suffice 
which does not encode the &. So I will add the xml.text as fallback if present, 
this should resolve the issue.

The normal update cases are not touched by this issue, hence it has not crawled 
up so far.

                
> jsf.js: Script fragments evaluated after an ajax operation encode '&' 
> character into '&'
> --------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3321
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3321
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Werner Punz
>
> Script fragments containing & characters are encoded into & before the 
> script is evaluated. I checked the code from the server side and it is 
> correct, so the problem is on the javascript part. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to