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

Method AddBack

expand.go:52–54  ·  view source on GitHub ↗

AddBack adds the previous set of elements on the stack to the current set. It returns a new Selection object containing the current Selection combined with the previous one.

()

Source from the content-addressed store, hash-verified

50// It returns a new Selection object containing the current Selection combined
51// with the previous one.
52func (s *Selection) AddBack() *Selection {
53 return s.AddSelection(s.prevSel)
54}
55
56// AddBackFiltered reduces the previous set of elements on the stack to those that
57// match the selector string, and adds them to the current set.

Callers 3

AndSelfMethod · 0.95
TestAddBackFunction · 0.80
TestAddBackRollbackFunction · 0.80

Calls 1

AddSelectionMethod · 0.95

Tested by 2

TestAddBackFunction · 0.64
TestAddBackRollbackFunction · 0.64