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

Method AddBackFiltered

expand.go:60–62  ·  view source on GitHub ↗

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

(selector string)

Source from the content-addressed store, hash-verified

58// It returns a new Selection object containing the current Selection combined
59// with the filtered previous one
60func (s *Selection) AddBackFiltered(selector string) *Selection {
61 return s.AddSelection(s.prevSel.Filter(selector))
62}
63
64// AddBackMatcher reduces the previous set of elements on the stack to those that match
65// the matcher, and adds them to the current set.

Callers 2

TestAddBackFilteredFunction · 0.80

Calls 2

AddSelectionMethod · 0.95
FilterMethod · 0.65

Tested by 2

TestAddBackFilteredFunction · 0.64