✏️ 编辑:wp-polyfill-node-contains.js
路径:
/home/forge/kingkrunch.com/wp/wp-includes/js/dist/vendor/wp-polyfill-node-contains.js
大小:643 B · 修改:2021-09-03 17:47:38 · 权限:0775 · 可写
← 返回目录
👁 查看
⬇ 下载
// 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; } }());
💾 保存
取消
保存为 UTF-8,换行统一为 LF