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
| 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. |
| 18 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected