MCPcopy Create free account

hub / github.com/PuerkitoBio/goquery / functions

Functions689 in github.com/PuerkitoBio/goquery

↓ 4 callersFunctionfindWithMatcher
Internal implementation of Find that return raw nodes.
traversal.go:544
↓ 4 callersFunctiongetAttributePtr
(attrName string, n *html.Node)
property.go:224
↓ 4 callersFunctiongetChildrenNodes
Gets the children nodes of each node in the specified slice of nodes, based on the sibling type request.
traversal.go:603
↓ 4 callersFunctiongetClassesSlice
(classes string)
property.go:260
↓ 4 callersMethodmanipulateNodes
(ns []*html.Node, reverse bool, f func(sn *html.Node, n *html.Node))
manipulation.go:626
↓ 4 callersMethodparseOpts
parseOpts returns the parse options of the document this selection belongs to, so an HTML string added later is parsed the same way the document was.
manipulation.go:566
↓ 4 callersFunctionwinnowNodes
Filter based on an array of nodes, and the indicator to keep (Filter) or to get rid of (Not) the matching elements.
filter.go:162
↓ 4 callersMethodwrapInnerNodes
(ns ...*html.Node)
manipulation.go:546
↓ 3 callersMethodAfter
After applies the selector from the root document and inserts the matched elements after the elements in the set of matched elements. If one of the m
manipulation.go:18
↓ 3 callersMethodAfterNodes
AfterNodes inserts the nodes after each element in the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:58
↓ 3 callersMethodAndSelf
AndSelf adds the previous set of elements on the stack to the current set. It returns a new Selection object containing the current Selection combined
expand.go:45
↓ 3 callersMethodAppendNodes
AppendNodes appends the specified nodes to each node in the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:108
↓ 3 callersFunctionCloneDocument
CloneDocument creates a deep-clone of a document.
type.go:102
↓ 3 callersMethodFilterNodes
FilterNodes reduces the set of matched elements to those that match the specified nodes. It returns a new Selection object for this subset of elements
filter.go:44
↓ 3 callersMethodHasSelection
HasSelection reduces the set of matched elements to those that have a descendant that matches one of the nodes of the specified Selection object. It r
filter.go:127
↓ 3 callersMethodIndex
Index returns the position of the first element within the Selection object relative to its sibling elements.
array.go:82
↓ 3 callersMethodIndexOfNode
IndexOfNode returns the position of the specified node within the Selection object, or -1 if not found.
array.go:119
↓ 3 callersMethodIndexSelector
IndexSelector returns the position of the first element within the Selection object relative to the elements matched by the selector, or -1 if not fou
array.go:98
↓ 3 callersMethodIsFunction
IsFunction checks the current matched set of elements against a predicate and returns true if at least one of these elements matches.
query.go:23
↓ 3 callersMethodIsNodes
IsNodes checks the current matched set of elements against the specified nodes and returns true if at least one of these elements matches.
query.go:43
↓ 3 callersMethodIsSelection
IsSelection checks the current matched set of elements against a Selection object and returns true if at least one of these elements matches.
query.go:34
↓ 3 callersFunctionNewDocumentFromReaderWithOptions
NewDocumentFromReaderWithOptions is like NewDocumentFromReader, with the parse options of the html package. For example: doc, err := goquery.NewDoc
type.go:69
↓ 3 callersMethodNextFilteredUntilNodes
NextFilteredUntilNodes is like NextUntilNodes, with the option to filter the results based on a selector string. It returns a new Selection object con
traversal.go:475
↓ 3 callersMethodNextFilteredUntilSelection
NextFilteredUntilSelection is like NextUntilSelection, with the option to filter the results based on a selector string. It returns a new Selection ob
traversal.go:458
↓ 3 callersMethodNextUntilSelection
NextUntilSelection gets all following siblings of each element up to but not including the element matched by the Selection. It returns a new Selectio
traversal.go:390
↓ 3 callersMethodNotFunction
NotFunction removes elements from the Selection that pass the function's test. It returns a new Selection object with the matching elements removed.
filter.go:38
↓ 3 callersMethodNotNodes
NotNodes removes elements from the Selection that match the specified nodes. It returns a new Selection object with the matching elements removed.
filter.go:50
↓ 3 callersMethodNotSelection
NotSelection removes elements from the Selection that match a node in the specified Selection object. It returns a new Selection object with the match
filter.go:66
↓ 3 callersFunctionOuterHtml
OuterHtml returns the outer HTML rendering of the first item in the selection - that is, the HTML including the first element's tag and attributes. U
utilities.go:144
↓ 3 callersMethodParentsFilteredUntilNodes
ParentsFilteredUntilNodes is like ParentsUntilNodes, with the option to filter the results based on a selector string. It returns a new Selection obje
traversal.go:260
↓ 3 callersMethodParentsFilteredUntilSelection
ParentsFilteredUntilSelection is like ParentsUntilSelection, with the option to filter the results based on a selector string. It returns a new Select
traversal.go:243
↓ 3 callersMethodParentsUntilSelection
ParentsUntilSelection gets the ancestors of each element in the Selection, up to but not including the elements in the specified Selection. It returns
traversal.go:213
↓ 3 callersMethodPrependHtml
PrependHtml parses the html and prepends it to the set of matched elements.
manipulation.go:214
↓ 3 callersMethodPrependSelection
PrependSelection prepends the elements in the selection to each element in the set of matched elements. This follows the same rules as Selection.Appe
manipulation.go:209
↓ 3 callersMethodPrevFilteredUntilNodes
PrevFilteredUntilNodes is like PrevUntilNodes, with the option to filter the results based on a selector string. It returns a new Selection object con
traversal.go:524
↓ 3 callersMethodPrevFilteredUntilSelection
PrevFilteredUntilSelection is like PrevUntilSelection, with the option to filter the results based on a selector string. It returns a new Selection ob
traversal.go:507
↓ 3 callersMethodPrevUntilSelection
PrevUntilSelection gets all preceding siblings of each element up to but not including the element matched by the Selection. It returns a new Selectio
traversal.go:424
↓ 3 callersMethodSize
Size is an alias for Length.
property.go:79
↓ 3 callersMethodWrapInner
WrapInner wraps an HTML structure, matched by the given selector, around the content of element in the set of matched elements. The matched child is c
manipulation.go:501
↓ 3 callersFunctioncachedParseHtmlWithContext
cachedParseHtmlWithContext returns parseHtmlWithContext(htmlStr, context), reusing a prior result when context's nodeName has already been seen with t
manipulation.go:696
↓ 3 callersFunctiongetClassesAndAttr
Get and normalize the "class" attribute from the node.
property.go:238
↓ 3 callersFunctiongetParentNodes
Internal implementation of parent nodes that return a raw slice of Nodes.
traversal.go:689
↓ 3 callersFunctionparseHtmlWithContext
(h string, context *html.Node, opts []html.ParseOption)
manipulation.go:577
↓ 3 callersFunctionremoveAttr
(n *html.Node, attrName string)
property.go:267
↓ 3 callersFunctionsetClasses
(n *html.Node, attr *html.Attribute, classes string)
property.go:277
↓ 3 callersFunctionwinnow
Filter based on the matcher, and the indicator to keep (Filter) or to get rid of (Not) the matching elements.
filter.go:145
↓ 3 callersMethodwrapNodes
(ns ...*html.Node)
manipulation.go:408
↓ 2 callersMethodAddBackFiltered
AddBackFiltered reduces the previous set of elements on the stack to those that match the selector string, and adds them to the current set. It return
expand.go:60
↓ 2 callersMethodAfterHtml
AfterHtml parses the html and inserts it after the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:44
↓ 2 callersMethodAppend
Append appends the elements specified by the selector to the end of each element in the set of matched elements, following those rules: 1) The select
manipulation.go:76
↓ 2 callersMethodBefore
Before inserts the matched elements before each element in the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:117
↓ 2 callersMethodBeforeHtml
BeforeHtml parses the html and inserts it before the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:139
↓ 2 callersMethodBeforeNodes
BeforeNodes inserts the nodes before each element in the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:152
↓ 2 callersMethodEachWithBreak
EachWithBreak iterates over a Selection object, executing a function for each matched element. It is identical to Each except that it is possible to b
iteration.go:33
↓ 2 callersMethodFindNodes
FindNodes gets the descendants of each element in the current Selection, filtered by some nodes. It returns a new Selection object containing these ma
traversal.go:53
↓ 2 callersMethodFindSelection
FindSelection gets the descendants of each element in the current Selection, filtered by a Selection. It returns a new Selection object containing the
traversal.go:43
↓ 2 callersMethodIndexOfSelection
IndexOfSelection returns the position of the first node in the specified Selection object within this Selection object, or -1 if not found.
array.go:125
↓ 2 callersMethodIntersection
Intersection is an alias for FilterSelection.
filter.go:74
↓ 2 callersFunctionMap
Map is the generic version of Selection.Map, allowing any type to be returned.
iteration.go:53
↓ 2 callersMethodMap
Map passes each element in the current matched set through a function, producing a slice of string holding the returned values. The function f is call
iteration.go:47
↓ 2 callersMethodMatchFirst
MatchFirst returns the first node that matches, or nil if none does. It uses the underlying Matcher's MatchFirst method if it provides one (cascadia-
type.go:201
↓ 2 callersFunctionNewDocumentFromNode
NewDocumentFromNode is a Document constructor that takes a root html Node as argument.
type.go:29
↓ 2 callersFunctionNewDocumentFromResponse
NewDocumentFromResponse is another Document constructor that takes an http response as argument. It loads the specified response's document, parses it
type.go:82
↓ 2 callersFunctionNodeName
NodeName returns the node name of the first element in the selection. It tries to behave in a similar way as the DOM's nodeName property (https://deve
utilities.go:35
↓ 2 callersMethodNotMatcher
NotMatcher removes elements from the Selection that match the given matcher. It returns a new Selection object with the matching elements removed.
filter.go:26
↓ 2 callersMethodPrepend
Prepend prepends the elements specified by the selector to each element in the set of matched elements, following the same rules as Append.
manipulation.go:193
↓ 2 callersMethodPrependNodes
PrependNodes prepends the specified nodes to each node in the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:227
↓ 2 callersMethodReplaceWithHtml
ReplaceWithHtml replaces each element in the set of matched elements with the parsed HTML. It returns the removed elements. This follows the same rul
manipulation.go:296
↓ 2 callersMethodReplaceWithNodes
ReplaceWithNodes replaces each element in the set of matched elements with the given nodes. It returns the removed elements. This follows the same ru
manipulation.go:313
↓ 2 callersMethodReplaceWithSelection
ReplaceWithSelection replaces each element in the set of matched elements with the nodes from the given Selection. It returns the removed elements. T
manipulation.go:287
↓ 2 callersFunctionSingle
Single compiles a selector string to a Matcher that returns at most one match per call to Matcher.MatchAll. By default, Selection.Find and other func
type.go:166
↓ 2 callersFunctionSingleMatcher
SingleMatcher returns a Matcher matches the same nodes as m, but that stops after the first match is found. See the documentation of function Single
type.go:174
↓ 2 callersMethodWrap
Wrap wraps each element in the set of matched elements inside the first element matched by the given selector. The matched child is cloned before bein
manipulation.go:360
↓ 2 callersFunctionappendWithoutDuplicates
Appends the new nodes to the target slice, making sure no duplicate is added. There is no check to the original state of the target slice, so it may s
utilities.go:197
↓ 2 callersFunctiongetChildrenWithSiblingType
Gets the children of the specified parent, based on the requested sibling type, skipping a specified node if required.
traversal.go:611
↓ 2 callersFunctionnewEmptySelection
Helper constructor to create an empty selection
type.go:124
↓ 2 callersFunctionnodeContains
Checks if the contained node is within the container node.
utilities.go:164
↓ 2 callersFunctionnodeName
nodeName returns the node name of the given html node. See NodeName for additional details on behaviour.
utilities.go:44
↓ 2 callersFunctionremoveClassFromClasses
removeClassFromClasses removes every occurrence of cl from the normalized class string. One ReplaceAll pass is not enough: adjacent occurrences share
property.go:213
↓ 2 callersFunctionsliceContains
Loop through all container nodes to search for the target node.
utilities.go:153
↓ 2 callersFunctionwinnowFunction
Filter based on a function test, and the indicator to keep (Filter) or to get rid of (Not) the matching elements.
filter.go:188
↓ 1 callersMethodAddMatcher
AddMatcher adds the matcher's matching nodes to those in the current selection and returns a new Selection object. The matcher is run in the context o
expand.go:17
↓ 1 callersMethodAfterMatcher
AfterMatcher applies the matcher from the root document and inserts the matched elements after the elements in the set of matched elements. If one of
manipulation.go:29
↓ 1 callersMethodAfterSelection
AfterSelection inserts the elements in the selection after each element in the set of matched elements. This follows the same rules as Selection.Appe
manipulation.go:37
↓ 1 callersMethodAppendMatcher
AppendMatcher appends the elements specified by the matcher to the end of each element in the set of matched elements. This follows the same rules as
manipulation.go:84
↓ 1 callersMethodBeforeMatcher
BeforeMatcher inserts the matched elements before each element in the set of matched elements. This follows the same rules as Selection.Append.
manipulation.go:124
↓ 1 callersMethodBeforeSelection
BeforeSelection inserts the elements in the selection before each element in the set of matched elements. This follows the same rules as Selection.Ap
manipulation.go:132
↓ 1 callersMethodChildrenMatcher
ChildrenMatcher gets the child elements of each element in the Selection, filtered by the specified matcher. It returns a new Selection object contain
traversal.go:105
↓ 1 callersMethodClosestMatcher
ClosestMatcher gets the first element that matches the matcher by testing the element itself and traversing up through its ancestors in the DOM tree.
traversal.go:136
↓ 1 callersFunctionDoc3
()
type_test.go:39
↓ 1 callersFunctionDoc3Clone
()
type_test.go:46
↓ 1 callersMethodEmpty
Empty removes all children nodes from the set of matched elements. It returns the children nodes in a new Selection.
manipulation.go:170
↓ 1 callersMethodHasMatcher
HasMatcher reduces the set of matched elements to those that have a descendant that matches the matcher. It returns a new Selection object with the ma
filter.go:88
↓ 1 callersMethodIsMatcher
IsMatcher checks the current matched set of elements against a matcher and returns true if at least one of these elements matches.
query.go:17
↓ 1 callersMethodNextMatcher
NextMatcher gets the immediately following sibling of each element in the Selection filtered by a matcher. It returns a new Selection object containin
traversal.go:307
↓ 1 callersMethodNextMatcherUntilNodes
NextMatcherUntilNodes is like NextUntilNodes, with the option to filter the results based on a matcher. It returns a new Selection object containing t
traversal.go:483
↓ 1 callersMethodNextMatcherUntilSelection
NextMatcherUntilSelection is like NextUntilSelection, with the option to filter the results based on a matcher. It returns a new Selection object cont
traversal.go:465
↓ 1 callersMethodParentsMatcher
ParentsMatcher gets the ancestors of each element in the current Selection. It returns a new Selection object with the matched elements.
traversal.go:192
↓ 1 callersMethodParentsMatcherUntilNodes
ParentsMatcherUntilNodes is like ParentsUntilNodes, with the option to filter the results based on a matcher. It returns a new Selection object contai
traversal.go:267
↓ 1 callersMethodParentsMatcherUntilSelection
ParentsMatcherUntilSelection is like ParentsUntilSelection, with the option to filter the results based on a matcher. It returns a new Selection objec
traversal.go:250
← previousnext →101–200 of 689, ranked by callers