PrevMatcher gets the immediately preceding sibling of each element in the Selection filtered by a matcher. It returns a new Selection object containing the matched elements.
(m Matcher)
| 345 | // Selection filtered by a matcher. It returns a new Selection object |
| 346 | // containing the matched elements. |
| 347 | func (s *Selection) PrevMatcher(m Matcher) *Selection { |
| 348 | return filterAndPush(s, getSiblingNodes(s.Nodes, siblingPrev, nil, nil), m) |
| 349 | } |
| 350 | |
| 351 | // PrevAll gets all the preceding siblings of each element in the |
| 352 | // Selection. It returns a new Selection object containing the matched elements. |
no test coverage detected