MCPcopy
hub / github.com/PuerkitoBio/goquery / Find

Method Find

traversal.go:29–31  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

27// the goquery documentation here:
28// https://github.com/PuerkitoBio/goquery?tab=readme-ov-file#api
29func (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

Callers 15

HasMethod · 0.80
TestAfterFunction · 0.80
TestAfterManyFunction · 0.80
TestAfterWithRemovedFunction · 0.80
TestAfterSelectionFunction · 0.80
TestAfterHtmlFunction · 0.80
TestAfterHtmlContextFunction · 0.80
TestAppendFunction · 0.80
TestAppendBodyFunction · 0.80
TestAppendSelectionFunction · 0.80
TestAppendCloneFunction · 0.80

Calls 3

pushStackFunction · 0.85
findWithMatcherFunction · 0.85
compileMatcherFunction · 0.85

Tested by 15

TestAfterFunction · 0.64
TestAfterManyFunction · 0.64
TestAfterWithRemovedFunction · 0.64
TestAfterSelectionFunction · 0.64
TestAfterHtmlFunction · 0.64
TestAfterHtmlContextFunction · 0.64
TestAppendFunction · 0.64
TestAppendBodyFunction · 0.64
TestAppendSelectionFunction · 0.64
TestAppendCloneFunction · 0.64
TestAppendHtmlFunction · 0.64