From 86784895dfc23652f8c31cb16c00222d6d2c4010 Mon Sep 17 00:00:00 2001 From: mriem Date: Mon, 8 Sep 2014 16:14:23 +0000 Subject: [PATCH] Fixes https://java.net/jira/browse/JAVASERVERFACES-3367, make sure CDATA sections for sections are properly joined git-svn-id: https://svn.java.net/svn/mojarra~svn/trunk@13648 761efcf2-d34d-6b61-9145-99dcacc3edf1 --- jsf-api/src/main/resources/jsf.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jsf-api/src/main/resources/jsf.js b/jsf-api/src/main/resources/jsf.js index e8ff057ba0..d96d0812e9 100644 --- a/jsf-api/src/main/resources/jsf.js +++ b/jsf-api/src/main/resources/jsf.js @@ -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); };