MCPcopy
hub / github.com/PuerkitoBio/goquery / newSingleSelection

Function newSingleSelection

type.go:111–113  ·  view source on GitHub ↗

Helper constructor to create a selection of only one node

(node *html.Node, doc *Document)

Source from the content-addressed store, hash-verified

109
110// Helper constructor to create a selection of only one node
111func 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

Callers 14

WrapHtmlMethod · 0.85
WrapAllNodeMethod · 0.85
WrapInnerHtmlMethod · 0.85
getParentsNodesFunction · 0.85
getSiblingNodesFunction · 0.85
IndexMethod · 0.85
TestNodeNameFunction · 0.85
TestOuterHtmlFunction · 0.85
newDocumentFunction · 0.85
EachMethod · 0.85
EachIterMethod · 0.85
EachWithBreakMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestNodeNameFunction · 0.68
TestOuterHtmlFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…