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

Method PrependMatcher

manipulation.go:191–193  ·  view source on GitHub ↗

PrependMatcher prepends the elements specified by the matcher to each element in the set of matched elements. This follows the same rules as Selection.Append.

(m Matcher)

Source from the content-addressed store, hash-verified

189//
190// This follows the same rules as Selection.Append.
191func (s *Selection) PrependMatcher(m Matcher) *Selection {
192 return s.PrependNodes(m.MatchAll(s.document.rootNode)...)
193}
194
195// PrependSelection prepends the elements in the selection to each element in
196// the set of matched elements.

Callers 1

PrependMethod · 0.95

Calls 2

PrependNodesMethod · 0.95
MatchAllMethod · 0.65

Tested by

no test coverage detected