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)
| 189 | // |
| 190 | // This follows the same rules as Selection.Append. |
| 191 | func (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. |
no test coverage detected