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

Method Contents

traversal.go:65–67  ·  view source on GitHub ↗

Contents gets the children of each element in the Selection, including text and comment nodes. It returns a new Selection object containing these elements.

()

Source from the content-addressed store, hash-verified

63// including text and comment nodes. It returns a new Selection object
64// containing these elements.
65func (s *Selection) Contents() *Selection {
66 return pushStack(s, getChildrenNodes(s.Nodes, siblingAllIncludingNonElements))
67}
68
69// ContentsFiltered gets the children of each element in the Selection,
70// filtered by the specified selector. It returns a new Selection

Callers 7

wrapInnerNodesMethod · 0.95
ContentsFilteredMethod · 0.95
TestContentsFunction · 0.80
TestContentsRollbackFunction · 0.80
BenchmarkContentsFunction · 0.80
UnwrapMethod · 0.80

Calls 2

pushStackFunction · 0.85
getChildrenNodesFunction · 0.85

Tested by 4

TestContentsFunction · 0.64
TestContentsRollbackFunction · 0.64
BenchmarkContentsFunction · 0.64