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

Method ContentsMatcher

traversal.go:85–87  ·  view source on GitHub ↗

ContentsMatcher gets the children of each element in the Selection, filtered by the specified matcher. It returns a new Selection object containing these elements. Since matchers only act on Element nodes, this function is an alias to ChildrenMatcher.

(m Matcher)

Source from the content-addressed store, hash-verified

83// object containing these elements. Since matchers only act on Element nodes,
84// this function is an alias to ChildrenMatcher.
85func (s *Selection) ContentsMatcher(m Matcher) *Selection {
86 return s.ChildrenMatcher(m)
87}
88
89// Children gets the child elements of each element in the Selection.
90// It returns a new Selection object containing these elements.

Callers

nothing calls this directly

Calls 1

ChildrenMatcherMethod · 0.95

Tested by

no test coverage detected