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

Method PrevFilteredUntilSelection

traversal.go:507–509  ·  view source on GitHub ↗

PrevFilteredUntilSelection is like PrevUntilSelection, with the option to filter the results based on a selector string. It returns a new Selection object containing the matched elements.

(filterSelector string, sel *Selection)

Source from the content-addressed store, hash-verified

505// option to filter the results based on a selector string. It returns a new
506// Selection object containing the matched elements.
507func (s *Selection) PrevFilteredUntilSelection(filterSelector string, sel *Selection) *Selection {
508 return s.PrevMatcherUntilSelection(compileMatcher(filterSelector), sel)
509}
510
511// PrevMatcherUntilSelection is like PrevUntilSelection, with the
512// option to filter the results based on a matcher. It returns a new

Calls 2

compileMatcherFunction · 0.85