myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject [myfaces] branch 2.3.x updated: https://issues.apache.org/jira/browse/MYFACES-4230: Fixing an ie11 deviation in handling names
Date Fri, 11 May 2018 17:15:41 GMT
This is an automated email from the ASF dual-hosted git repository.

werpu pushed a commit to branch 2.3.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3.x by this push:
     new ed3c03c  https://issues.apache.org/jira/browse/MYFACES-4230: Fixing an ie11 deviation
in handling names
ed3c03c is described below

commit ed3c03ca2f7517fce95efdf624a07fe8d17defb4
Author: werpu <werner.punz@gmail.com>
AuthorDate: Fri May 11 19:12:10 2018 +0200

    https://issues.apache.org/jira/browse/MYFACES-4230:
    Fixing an ie11 deviation in handling names
    
    (cherry picked from commit 5e9053a)
---
 .../META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
b/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
index 5254efc..786ec13 100644
--- a/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
+++ b/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
@@ -239,7 +239,11 @@ _MF_SINGLTN(_PFX_XHR + "_AjaxResponse", _MF_OBJECT, /** @lends myfaces._impl.xhr
         var elements = theForm.elements;
         for (var i = 0, l = elements.length; i < l; i++) {
             var e = elements[i];
-            if (e.name.indexOf(identifier) != -1) {
+            //https://issues.apache.org/jira/browse/MYFACES-4230
+            //ie11 has a devation from the standard behavior, we have to remap the null/undefined
name
+            //to an empty string
+            var eName = e.name || "";
+            if (eName.indexOf(identifier) != -1) {
                 fieldsFound.push(e);
             }
         }

-- 
To stop receiving notification emails like this one, please contact
werpu@apache.org.

Mime
View raw message