Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…ATA sections for <eval> sections are properly joined

git-svn-id: https://svn.java.net/svn/mojarra~svn/trunk@13648 761efcf2-d34d-6b61-9145-99dcacc3edf1
  • Loading branch information
manfredriem authored and ren-zhijun-oracle committed Jun 21, 2018
1 parent f136b96 commit 8678489
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jsf-api/src/main/resources/jsf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,11 @@ if (!((jsf && jsf.specversion && jsf.specversion >= 20000 ) &&
* @ignore
*/
var doEval = function doEval(element) {
var evalText = element.firstChild.nodeValue;
var evalText = '';
var childNodes = element.childNodes;
for (var i = 0; i < childNodes.length; i++) {
evalText += childNodes[i].nodeValue;
}
globalEval(evalText);
};

Expand Down

0 comments on commit 8678489

Please sign in to comment.