Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-102595

Polyfill error at contains function on SVG element on IE11

    Details

      Description

      The issue is not reproducable on master, but it will be commited to the master branch and backport to 72x and 71x.

      Backporting core-js polyfill based on the LPS-95425 to 71x cause regression on IE11.

      There is a JS error on the
      Control Panel/Configuration/System Settings page:

      "TypeError: Object doesn't support property or method 'contains'
       at getFocusedPath (edited) 

       
      The IE11 has issue with the contains function in incremental-dom-cjs.js:

      var getFocusedPath = function (node, root) {
        var activeElement = getActiveElement(node);
      
        if (!activeElement || !node.contains(activeElement)) {
          return [];
        }
      
        return getAncestry(activeElement, root);
      };
      

      In that point, in 7.1.x node variable is an SVG element. With a regular browser that wouldn't be a problem.

       

        Attachments

          Activity

            People

            • Assignee:
              summer.zhang Summer Zhang
              Reporter:
              roland.pakai Roland Pákai
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 1 day ago

                Packages

                Version Package
                7.1.X
                7.2.X
                Master