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

Method Append

manipulation.go:74–76  ·  view source on GitHub ↗

Append appends the elements specified by the selector to the end of each element in the set of matched elements, following those rules: 1) The selector is applied to the root document. 2) Elements that are part of the document will be moved to the new location. 3) If there are multiple locations

(selector string)

Source from the content-addressed store, hash-verified

72// appended to all target locations except the last one, which will be moved
73// as noted in (2).
74func (s *Selection) Append(selector string) *Selection {
75 return s.AppendMatcher(compileMatcher(selector))
76}
77
78// AppendMatcher appends the elements specified by the matcher to the end of each element
79// in the set of matched elements.

Callers 2

TestAppendFunction · 0.80
TestAppendBodyFunction · 0.80

Calls 2

AppendMatcherMethod · 0.95
compileMatcherFunction · 0.85

Tested by 2

TestAppendFunction · 0.64
TestAppendBodyFunction · 0.64