You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/04/06 09:26:58 UTC
svn commit: r1828505 -
/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
Author: lofwyr
Date: Fri Apr 6 09:26:58 2018
New Revision: 1828505
URL: http://svn.apache.org/viewvc?rev=1828505&view=rev
Log:
MYFACES-4218: AJAX parser should be more tolerant against white spaces (JavaScript)
Modified:
myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js?rev=1828505&r1=1828504&r2=1828505&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Dom.js Fri Apr 6 09:26:58 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;