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

Method NextFiltered

traversal.go:300–302  ·  view source on GitHub ↗

NextFiltered gets the immediately following sibling 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

298// Selection filtered by a selector. It returns a new Selection object
299// containing the matched elements.
300func (s *Selection) NextFiltered(selector string) *Selection {
301 return filterAndPush(s, getSiblingNodes(s.Nodes, siblingNext, nil, nil), compileMatcher(selector))
302}
303
304// NextMatcher gets the immediately following sibling of each element in the
305// Selection filtered by a matcher. It returns a new Selection object

Callers 5

TestNextFilteredFunction · 0.80
TestNextFilteredInvalidFunction · 0.80
TestNextFilteredRollbackFunction · 0.80
TestNextFiltered2Function · 0.80
BenchmarkNextFilteredFunction · 0.80

Calls 3

filterAndPushFunction · 0.85
getSiblingNodesFunction · 0.85
compileMatcherFunction · 0.85

Tested by 5

TestNextFilteredFunction · 0.64
TestNextFilteredInvalidFunction · 0.64
TestNextFilteredRollbackFunction · 0.64
TestNextFiltered2Function · 0.64
BenchmarkNextFilteredFunction · 0.64