IsSelection checks the current matched set of elements against a Selection object and returns true if at least one of these elements matches.
(sel *Selection)
| 32 | // IsSelection checks the current matched set of elements against a Selection object |
| 33 | // and returns true if at least one of these elements matches. |
| 34 | func (s *Selection) IsSelection(sel *Selection) bool { |
| 35 | if sel == nil { |
| 36 | return false |
| 37 | } |
| 38 | return s.IsNodes(sel.Nodes...) |
| 39 | } |
| 40 | |
| 41 | // IsNodes checks the current matched set of elements against the specified nodes |
| 42 | // and returns true if at least one of these elements matches. |