JSSoup icon indicating copy to clipboard operation
JSSoup copied to clipboard

`recursive` argument

Open easz opened this issue 3 years ago • 0 comments

Would it be possible to support recursive argument ?

I could simulate it somehow like this at the moment...

  function findAll(element, {'recursive' = false}) {
    var result = [];
    const head = soup.find(element);
    const tail = head.findNextSiblings(element)
    return [ head, ...tail ];
  }

easz avatar Apr 14 '22 08:04 easz