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

Method PrevMatcherUntilSelection

traversal.go:514–519  ·  view source on GitHub ↗

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

(filter Matcher, sel *Selection)

Source from the content-addressed store, hash-verified

512// option to filter the results based on a matcher. It returns a new
513// Selection object containing the matched elements.
514func (s *Selection) PrevMatcherUntilSelection(filter Matcher, sel *Selection) *Selection {
515 if sel == nil {
516 return s.PrevMatcher(filter)
517 }
518 return s.PrevMatcherUntilNodes(filter, sel.Nodes...)
519}
520
521// PrevFilteredUntilNodes is like PrevUntilNodes, with the
522// option to filter the results based on a selector string. It returns a new

Callers 1

Calls 2

PrevMatcherMethod · 0.95
PrevMatcherUntilNodesMethod · 0.95

Tested by

no test coverage detected