old_contents: export function findNearestElement(view, selector) {
    if (!view || view.matches("html")) return null;
    if (!selector) return null;
    return document.querySelector(selector) || findNearestElement(view.parentElement, selector);
  }
  
new_contents: export function findNearestElement(view, selector) {
    if (!view || view.matches("html")) return null;
    if (!selector) return null;
    return view.querySelector(selector) || findNearestElement(view.parentElement, selector);
  }
  
subject: Fix Find Nearest Element