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)
| 30 | // IsSelection checks the current matched set of elements against a Selection object |
| 31 | // and returns true if at least one of these elements matches. |
| 32 | func (s *Selection) IsSelection(sel *Selection) bool { |
| 33 | return s.FilterSelection(sel).Length() > 0 |
| 34 | } |
| 35 | |
| 36 | // IsNodes checks the current matched set of elements against the specified nodes |
| 37 | // and returns true if at least one of these elements matches. |