Find gets the descendants of each element in the current set of matched elements, filtered by a selector. It returns a new Selection object containing these matched elements. Note that as for all methods accepting a selector string, the selector is compiled and applied by the cascadia package and i
(selector string)
| 27 | // the goquery documentation here: |
| 28 | // https://github.com/PuerkitoBio/goquery?tab=readme-ov-file#api |
| 29 | func (s *Selection) Find(selector string) *Selection { |
| 30 | return pushStack(s, findWithMatcher(s.Nodes, compileMatcher(selector))) |
| 31 | } |
| 32 | |
| 33 | // FindMatcher gets the descendants of each element in the current set of matched |
| 34 | // elements, filtered by the matcher. It returns a new Selection object |