diff --git a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js index 4fb3e47fd..5b435a8c5 100644 --- a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js +++ b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js @@ -149,6 +149,38 @@ function _visitNode(node, callback) { document.cookie = ''; } + // document.implementation + // + // Required by: + // - jQuery + if (typeof document.implementation === 'undefined') { + document.implementation = {}; + } + + // document.implementation.createHTMLDocument + // + // Required by: + // - jQuery + if (typeof document.implementation.createHTMLDocument === 'undefined') { + document.implementation.createHTMLDocument = function(title = '') { + const htmlDocument + = new DOMParser().parseFromString( + ` +