Prepend an element through a worker!

Working hard to make prepend an element. Don’t know what I am doing wrong. Any help will be much appreciated!

here is the url of the element I want to move:

 // Breadcrumbs Rewriter - Done by Raph
class BreadcrumbsRewriter {
  element(element) {
    const breadCrumbElement = element.getAttribute(`#property > article > div > div:nth-child(1) > div.property-description.active.has-read-less > ul`);
    const beforeBreadCrumbElement = element.getAttribute('#app > div.container-fluid > div:nth-child(2)');
    if (element.hasAttribute(`#property > article > div > div:nth-child(1) > div.property-description.active.has-read-less > ul`)) {
      beforeBreadCrumbElement.prepend(breadCrumbElement)
    }
    console.log(breadCrumbElement);
  }
}
  // END ADDED 2022-08-05 by Raph

This is what triggers the Breadcrumbs rewriter:


new HTMLRewriter().on(`body`, new BreadcrumbsRewriter())