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

Method AddSelection

expand.go:23–28  ·  view source on GitHub ↗

AddSelection adds the specified Selection object's nodes to those in the current selection and returns a new Selection object.

(sel *Selection)

Source from the content-addressed store, hash-verified

21// AddSelection adds the specified Selection object's nodes to those in the
22// current selection and returns a new Selection object.
23func (s *Selection) AddSelection(sel *Selection) *Selection {
24 if sel == nil {
25 return s.AddNodes()
26 }
27 return s.AddNodes(sel.Nodes...)
28}
29
30// Union is an alias for AddSelection.
31func (s *Selection) Union(sel *Selection) *Selection {

Callers 8

UnionMethod · 0.95
AddBackMethod · 0.95
AddBackFilteredMethod · 0.95
AddBackMatcherMethod · 0.95
BenchmarkAddSelectionFunction · 0.80
TestAddSelectionFunction · 0.80
TestAddSelectionNilFunction · 0.80
TestAddSelectionRollbackFunction · 0.80

Calls 1

AddNodesMethod · 0.95

Tested by 4

BenchmarkAddSelectionFunction · 0.64
TestAddSelectionFunction · 0.64
TestAddSelectionNilFunction · 0.64
TestAddSelectionRollbackFunction · 0.64