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

Method AfterMatcher

manipulation.go:27–29  ·  view source on GitHub ↗

AfterMatcher applies the matcher from the root document and inserts the matched elements after the elements in the set of matched elements. If one of the matched elements in the selection is not currently in the document, it's impossible to insert nodes after it, so it will be ignored. This follow

(m Matcher)

Source from the content-addressed store, hash-verified

25//
26// This follows the same rules as Selection.Append.
27func (s *Selection) AfterMatcher(m Matcher) *Selection {
28 return s.AfterNodes(m.MatchAll(s.document.rootNode)...)
29}
30
31// AfterSelection inserts the elements in the selection after each element in the set of matched
32// elements.

Callers 1

AfterMethod · 0.95

Calls 2

AfterNodesMethod · 0.95
MatchAllMethod · 0.65

Tested by

no test coverage detected