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 2018/05/11 17:12:52 UTC

[myfaces] branch master updated: https://issues.apache.org/jira/browse/MYFACES-4230: Fixing an ie11 deviation in handling names

This is an automated email from the ASF dual-hosted git repository.

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


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

commit 5e9053ac1fcd1bda07d6a6fe2a615e2221b6e568
Author: werpu <we...@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
---
 .../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.