IsNodes checks the current matched set of elements against the specified nodes and returns true if at least one of these elements matches.
(nodes ...*html.Node)
| 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. |
| 38 | func (s *Selection) IsNodes(nodes ...*html.Node) bool { |
| 39 | return s.FilterNodes(nodes...).Length() > 0 |
| 40 | } |
| 41 | |
| 42 | // Contains returns true if the specified Node is within, |
| 43 | // at any depth, one of the nodes in the Selection object. |