AddNodes adds the specified nodes to those in the current selection and returns a new Selection object.
(nodes ...*html.Node)
| 35 | // AddNodes adds the specified nodes to those in the |
| 36 | // current selection and returns a new Selection object. |
| 37 | func (s *Selection) AddNodes(nodes ...*html.Node) *Selection { |
| 38 | return pushStack(s, appendWithoutDuplicates(s.Nodes, nodes, nil)) |
| 39 | } |
| 40 | |
| 41 | // AndSelf adds the previous set of elements on the stack to the current set. |
| 42 | // It returns a new Selection object containing the current Selection combined |