MCPcopy
hub / github.com/PuerkitoBio/goquery / NextUntilSelection

Method NextUntilSelection

traversal.go:390–395  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

388// including the element matched by the Selection. It returns a new Selection
389// object containing the matched elements.
390func (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

Callers 3

TestNextUntilSelectionFunction · 0.80

Calls 2

NextAllMethod · 0.95
NextUntilNodesMethod · 0.95

Tested by 3

TestNextUntilSelectionFunction · 0.64