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

Method IsNodes

query.go:38–40  ·  view source on GitHub ↗

IsNodes checks the current matched set of elements against the specified nodes and returns true if at least one of these elements matches.

(nodes ...*html.Node)

Source from the content-addressed store, hash-verified

36// IsNodes checks the current matched set of elements against the specified nodes
37// and returns true if at least one of these elements matches.
38func (s *Selection) IsNodes(nodes ...*html.Node) bool {
39 return s.FilterNodes(nodes...).Length() > 0
40}
41
42// Contains returns true if the specified Node is within,
43// at any depth, one of the nodes in the Selection object.

Callers 4

getParentsNodesFunction · 0.80
getSiblingNodesFunction · 0.80
BenchmarkIsNodesFunction · 0.80
TestIsNodesFunction · 0.80

Calls 2

FilterNodesMethod · 0.95
LengthMethod · 0.80

Tested by 2

BenchmarkIsNodesFunction · 0.64
TestIsNodesFunction · 0.64