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

Method ChildrenMatcher

traversal.go:105–107  ·  view source on GitHub ↗

ChildrenMatcher gets the child elements of each element in the Selection, filtered by the specified matcher. It returns a new Selection object containing these elements.

(m Matcher)

Source from the content-addressed store, hash-verified

103// filtered by the specified matcher. It returns a new
104// Selection object containing these elements.
105func (s *Selection) ChildrenMatcher(m Matcher) *Selection {
106 return filterAndPush(s, getChildrenNodes(s.Nodes, siblingAll), m)
107}
108
109// Parent gets the parent of each element in the Selection. It returns a
110// new Selection object containing the matched elements.

Callers 1

ContentsMatcherMethod · 0.95

Calls 2

filterAndPushFunction · 0.85
getChildrenNodesFunction · 0.85

Tested by

no test coverage detected