File Editor
Directories:
.. (Back)
Files:
lodash.js
lodash.min.js
moment.js
moment.min.js
react-dom.js
react-dom.min.js
react-dom.min.js.LICENSE.txt
react-jsx-runtime.js
react-jsx-runtime.min.js
react-jsx-runtime.min.js.LICENSE.txt
react.js
react.min.js
react.min.js.LICENSE.txt
regenerator-runtime.js
regenerator-runtime.min.js
wp-polyfill-dom-rect.js
wp-polyfill-dom-rect.min.js
wp-polyfill-element-closest.js
wp-polyfill-element-closest.min.js
wp-polyfill-fetch.js
wp-polyfill-fetch.min.js
wp-polyfill-formdata.js
wp-polyfill-formdata.min.js
wp-polyfill-importmap.js
wp-polyfill-importmap.min.js
wp-polyfill-inert.js
wp-polyfill-inert.min.js
wp-polyfill-node-contains.js
wp-polyfill-node-contains.min.js
wp-polyfill-object-fit.js
wp-polyfill-object-fit.min.js
wp-polyfill-url.js
wp-polyfill-url.min.js
wp-polyfill.js
wp-polyfill.min.js
Create New File
Create
Edit File: wp-polyfill-node-contains.js
// Node.prototype.contains (function() { function contains(node) { if (!(0 in arguments)) { throw new TypeError('1 argument is required'); } do { if (this === node) { return true; } // eslint-disable-next-line no-cond-assign } while (node = node && node.parentNode); return false; } // IE if ('HTMLElement' in self && 'contains' in HTMLElement.prototype) { try { delete HTMLElement.prototype.contains; // eslint-disable-next-line no-empty } catch (e) {} } if ('Node' in self) { Node.prototype.contains = contains; } else { document.contains = Element.prototype.contains = contains; } }());
Save Changes
Rename File
Rename