docs: function matchesSelector_SLOW(element, selector) {
    let root = element;
    while (root.parentNode) {
      root = root.parentNode;
    }
  
    const all = root.querySelectorAll(selector);
    return Array.prototype.indexOf.call(all, element) !== -1;
  }