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

Method AddNodes

expand.go:37–39  ·  view source on GitHub ↗

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

(nodes ...*html.Node)

Source from the content-addressed store, hash-verified

35// AddNodes adds the specified nodes to those in the
36// current selection and returns a new Selection object.
37func (s *Selection) AddNodes(nodes ...*html.Node) *Selection {
38 return pushStack(s, appendWithoutDuplicates(s.Nodes, nodes, nil))
39}
40
41// AndSelf adds the previous set of elements on the stack to the current set.
42// It returns a new Selection object containing the current Selection combined

Callers 9

AddMethod · 0.95
AddMatcherMethod · 0.95
AddSelectionMethod · 0.95
BenchmarkAddNodesFunction · 0.80
BenchmarkAddNodesBigFunction · 0.80
TestAddNodesFunction · 0.80
TestAddNodesNoneFunction · 0.80
TestAddNodesRollbackFunction · 0.80
TestAddNodesBigFunction · 0.80

Calls 2

pushStackFunction · 0.85
appendWithoutDuplicatesFunction · 0.85

Tested by 6

BenchmarkAddNodesFunction · 0.64
BenchmarkAddNodesBigFunction · 0.64
TestAddNodesFunction · 0.64
TestAddNodesNoneFunction · 0.64
TestAddNodesRollbackFunction · 0.64
TestAddNodesBigFunction · 0.64