NextUntilSelection gets all following siblings of each element up to but not including the element matched by the Selection. It returns a new Selection object containing the matched elements.
(sel *Selection)
| 388 | // including the element matched by the Selection. It returns a new Selection |
| 389 | // object containing the matched elements. |
| 390 | func (s *Selection) NextUntilSelection(sel *Selection) *Selection { |
| 391 | if sel == nil { |
| 392 | return s.NextAll() |
| 393 | } |
| 394 | return s.NextUntilNodes(sel.Nodes...) |
| 395 | } |
| 396 | |
| 397 | // NextUntilNodes gets all following siblings of each element up to but not |
| 398 | // including the element matched by the nodes. It returns a new Selection |