PrevFiltered gets the immediately preceding sibling of each element in the Selection filtered by a selector. It returns a new Selection object containing the matched elements.
(selector string)
| 338 | // Selection filtered by a selector. It returns a new Selection object |
| 339 | // containing the matched elements. |
| 340 | func (s *Selection) PrevFiltered(selector string) *Selection { |
| 341 | return filterAndPush(s, getSiblingNodes(s.Nodes, siblingPrev, nil, nil), compileMatcher(selector)) |
| 342 | } |
| 343 | |
| 344 | // PrevMatcher gets the immediately preceding sibling of each element in the |
| 345 | // Selection filtered by a matcher. It returns a new Selection object |