Skip to content

Commit 965013d

Browse files
committed
MC-41899: Fix jQuery nodeName calls
1 parent affa4ad commit 965013d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageCache/view/frontend/web/js/page-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ define([
6565
contents = function (elem) {
6666
return $.map(elem, function (el) {
6767
try {
68-
return $.nodeName(el, 'iframe') ?
68+
return elem.nodeName.toLowerCase() === 'iframe' ?
6969
el.contentDocument || (el.contentWindow ? el.contentWindow.document : []) :
7070
$.merge([], el.childNodes);
7171
} catch (e) {

0 commit comments

Comments
 (0)