MCPcopy Create free account
hub / github.com/PuerkitoBio/goquery / Document

Struct Document

type.go:18–22  ·  view source on GitHub ↗

Document represents an HTML document to be manipulated. Unlike jQuery, which is loaded as part of a DOM document, and thus acts upon its containing document, GoQuery doesn't know which HTML document to act upon. So it needs to be told, and that's what the Document class is for. It holds the root doc

Source from the content-addressed store, hash-verified

16// to be told, and that's what the Document class is for. It holds the root
17// document node to manipulate, and can make selections on this document.
18type Document struct {
19 *Selection
20 Url *url.URL
21 rootNode *html.Node
22}
23
24// NewDocumentFromNode is a Document constructor that takes a root html Node
25// as argument.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected