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

Method AddBackMatcher

expand.go:68–70  ·  view source on GitHub ↗

AddBackMatcher reduces the previous set of elements on the stack to those that match the matcher, and adds them to the current set. It returns a new Selection object containing the current Selection combined with the filtered previous one

(m Matcher)

Source from the content-addressed store, hash-verified

66// It returns a new Selection object containing the current Selection combined
67// with the filtered previous one
68func (s *Selection) AddBackMatcher(m Matcher) *Selection {
69 return s.AddSelection(s.prevSel.FilterMatcher(m))
70}

Callers

nothing calls this directly

Calls 2

AddSelectionMethod · 0.95
FilterMatcherMethod · 0.80

Tested by

no test coverage detected