Helper constructor to create a selection of only one node
(node *html.Node, doc *Document)
| 109 | |
| 110 | // Helper constructor to create a selection of only one node |
| 111 | func newSingleSelection(node *html.Node, doc *Document) *Selection { |
| 112 | return &Selection{[]*html.Node{node}, doc, nil} |
| 113 | } |
| 114 | |
| 115 | // Matcher is an interface that defines the methods to match |
| 116 | // HTML nodes against a compiled selector string. Cascadia's |
no outgoing calls
searching dependent graphs…