IndexOfNode returns the position of the specified node within the Selection object, or -1 if not found.
(node *html.Node)
| 111 | // IndexOfNode returns the position of the specified node within the Selection |
| 112 | // object, or -1 if not found. |
| 113 | func (s *Selection) IndexOfNode(node *html.Node) int { |
| 114 | return indexInSlice(s.Nodes, node) |
| 115 | } |
| 116 | |
| 117 | // IndexOfSelection returns the position of the first node in the specified |
| 118 | // Selection object within this Selection object, or -1 if not found. |