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

Method AppendNodes

manipulation.go:106–110  ·  view source on GitHub ↗

AppendNodes appends the specified nodes to each node in the set of matched elements. This follows the same rules as Selection.Append.

(ns ...*html.Node)

Source from the content-addressed store, hash-verified

104//
105// This follows the same rules as Selection.Append.
106func (s *Selection) AppendNodes(ns ...*html.Node) *Selection {
107 return s.manipulateNodes(ns, false, func(sn *html.Node, n *html.Node) {
108 sn.AppendChild(n)
109 })
110}
111
112// Before inserts the matched elements before each element in the set of matched elements.
113//

Callers 3

AppendMatcherMethod · 0.95
AppendSelectionMethod · 0.95
wrapInnerNodesMethod · 0.95

Calls 1

manipulateNodesMethod · 0.95

Tested by

no test coverage detected