Skip to content

Commit

Permalink
Merge pull request #28 from magento-lynx/MC-41899_fix_jquery_nodename
Browse files Browse the repository at this point in the history
MC-41899: Fix jQuery nodeName calls
  • Loading branch information
svera authored May 11, 2021
2 parents e34dda3 + ae4dd5f commit 855489f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define([
contents = function (elem) {
return $.map(elem, function (el) {
try {
return $.nodeName(el, 'iframe') ?
return el.nodeName.toLowerCase() === 'iframe' ?
el.contentDocument || (el.contentWindow ? el.contentWindow.document : []) :
$.merge([], el.childNodes);
} catch (e) {
Expand Down

0 comments on commit 855489f

Please sign in to comment.