MCPcopy Create free account
hub / github.com/andybalholm/cascadia / QueryAll

Function QueryAll

selector.go:151–153  ·  view source on GitHub ↗

QueryAll returns a slice of all the nodes that match m, from the descendants of n.

(n *html.Node, m Matcher)

Source from the content-addressed store, hash-verified

149// QueryAll returns a slice of all the nodes that match m, from the descendants
150// of n.
151func QueryAll(n *html.Node, m Matcher) []*html.Node {
152 return queryInto(n, m, nil)
153}
154
155// Match returns true if the node matches the selector.
156func (s Selector) Match(n *html.Node) bool {

Callers 1

TestMatchersFunction · 0.85

Calls 1

queryIntoFunction · 0.85

Tested by 1

TestMatchersFunction · 0.68