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)
| 72 | // appended to all target locations except the last one, which will be moved |
| 73 | // as noted in (2). |
| 74 | func (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. |