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

Method NextAllFiltered

traversal.go:320–322  ·  view source on GitHub ↗

NextAllFiltered gets all the following siblings of each element in the Selection filtered by a selector. It returns a new Selection object containing the matched elements.

(selector string)

Source from the content-addressed store, hash-verified

318// Selection filtered by a selector. It returns a new Selection object
319// containing the matched elements.
320func (s *Selection) NextAllFiltered(selector string) *Selection {
321 return filterAndPush(s, getSiblingNodes(s.Nodes, siblingNextAll, nil, nil), compileMatcher(selector))
322}
323
324// NextAllMatcher gets all the following siblings of each element in the
325// Selection filtered by a matcher. It returns a new Selection object

Callers 5

TestNextAllFilteredFunction · 0.80
TestNextAllFiltered2Function · 0.80
BenchmarkNextAllFilteredFunction · 0.80

Calls 3

filterAndPushFunction · 0.85
getSiblingNodesFunction · 0.85
compileMatcherFunction · 0.85

Tested by 5

TestNextAllFilteredFunction · 0.64
TestNextAllFiltered2Function · 0.64
BenchmarkNextAllFilteredFunction · 0.64