myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1828506 - /myfaces/core/branches/2.3.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
Date Fri, 06 Apr 2018 09:29:36 GMT
Author: lofwyr
Date: Fri Apr  6 09:29:36 2018
New Revision: 1828506

URL: http://svn.apache.org/viewvc?rev=1828506&view=rev
Log:
MYFACES-4218: AJAX parser should be more tolerant against white spaces (JavaScript)

Modified:
    myfaces/core/branches/2.3.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js

Modified: myfaces/core/branches/2.3.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js?rev=1828506&r1=1828505&r2=1828506&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
(original)
+++ myfaces/core/branches/2.3.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
Fri Apr  6 09:29:36 2018
@@ -601,6 +601,7 @@ _MF_SINGLTN(_PFX_UTIL + "_Dom", Object,
      */
     outerHTML : function(item, markup, preserveFocus) {
         this._assertStdParams(item, markup, "outerHTML");
+        markup = this._Lang.trim(markup);
         // we can work on a single element in a cross browser fashion
         // regarding the focus thanks to the
         // icefaces team for providing the code
@@ -609,7 +610,6 @@ _MF_SINGLTN(_PFX_UTIL + "_Dom", Object,
             this.cloneAttributes(item, replacingInput);
             return item;
         } else {
-            markup = this._Lang.trim(markup);
             if (markup !== "") {
                 var ret = null;
 



Mime
View raw message