You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2011/09/27 10:38:36 UTC

svn commit: r1176278 - /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js

Author: werpu
Date: Tue Sep 27 08:38:36 2011
New Revision: 1176278

URL: http://svn.apache.org/viewvc?rev=1176278&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-3321



Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js?rev=1176278&r1=1176277&r2=1176278&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js Tue Sep 27 08:38:36 2011
@@ -733,12 +733,14 @@ var _Lang = myfaces._impl.core._Runtime.
     }
     ,
 
-    serializeXML: function(xmlNode) {
+    serializeXML: function(xmlNode, escape) {
         if (xmlNode.xml) return xmlNode.xml; //IE
-        //rest of the world
+        if(!escape) {
+            if (xmlNode.data) return xmlNode.data; //CDATA block has raw data
+            if (xmlNode.textContent) return xmlNode.textContent; //textNode has textContent
+        }
         return (new XMLSerializer()).serializeToString(xmlNode);
-    }
-    ,
+    },
 
     serializeChilds: function(xmlNode) {
         var buffer = [];