MCPcopy Create free account

hub / github.com/crufter/goquery / functions

Functions196 in github.com/crufter/goquery

↓ 52 callersMethodaddElement
addElement calls addChild with an element node.
exp/html/parse.go:280
↓ 32 callersMethodpopUntil
popUntil pops the stack of open elements at the highest element whose tag is in matchTags, provided there is no higher element in the scope's stop tag
exp/html/parse.go:92
↓ 31 callersMethodpop
pop pops the stack. It will panic if s is empty.
exp/html/node.go:98
↓ 26 callersMethodWriteString
(string)
exp/html/render.go:18
↓ 26 callersMethodtop
()
exp/html/parse.go:47
↓ 22 callersMethodreadByte
readByte returns the next byte from the input stream, doing a buffered read from z.r into z.buf if necessary. z.buf[z.raw.start:z.raw.end] remains a c
exp/html/token.go:170
↓ 18 callersFunctioninBodyIM
Section 12.2.5.4.7.
exp/html/parse.go:691
↓ 16 callersMethodreconstructActiveFormattingElements
Section 12.2.3.3.
exp/html/parse.go:345
↓ 15 callersMethodparseImpliedToken
parseImpliedToken parses a token as though it had appeared in the parser's input.
exp/html/parse.go:1928
↓ 14 callersMethodAdd
Add adds a node as a child of n. It will panic if the child's parent is not nil.
exp/html/node.go:44
↓ 13 callersMethodWriteByte
(byte)
exp/html/render.go:17
↓ 13 callersMethodaddChild
addChild adds a child node n to the top element, and pushes n onto the stack of open elements if it is an element node.
exp/html/parse.go:207
↓ 12 callersMethodindex
index returns the index of the top-most occurrence of n in the stack, or -1 if n is not present.
exp/html/node.go:115
↓ 11 callersMethodFind
Get the descendants of each element in the current set of matched elements, filtered by a selector, GoQuery object, or element.
goquery.go:453
↓ 11 callersMethodaddText
addText adds text to the preceding node if it is a text node, or else it calls addChild with a new text node.
exp/html/parse.go:266
↓ 11 callersMethodelementInScope
elementInScope is like popUntil, except that it doesn't modify the stack of open elements.
exp/html/parse.go:149
↓ 9 callersMethodremove
remove removes a node from the stack. It is a no-op if n is not present.
exp/html/node.go:132
↓ 8 callersMethodString
String returns a string representation of the Token.
exp/html/token.go:94
↓ 8 callersMethodacknowledgeSelfClosingTag
Section 12.2.4.
exp/html/parse.go:384
↓ 7 callersMethodErr
Err returns the error associated with the most recent ErrorToken token. This is typically io.EOF, meaning the end of tokenization.
exp/html/token.go:158
↓ 7 callersMethodclearActiveFormattingElements
Section 12.2.3.3.
exp/html/parse.go:335
↓ 7 callersFunctioninHeadIM
Section 12.2.5.4.4.
exp/html/parse.go:554
↓ 7 callersFunctionsatisfiesSel
This is where we decide if a Node satisfies a given selector (for example: "div.nice" or "#whatever.yoyoyo")
goquery.go:100
↓ 6 callersMethodclearStackToContext
clearStackToContext pops elements off the stack of open elements until a scope-defined element is found.
exp/html/parse.go:155
↓ 6 callersFunctionparseSelector
(str string)
goquery.go:200
↓ 6 callersMethodstartTagIn
startTagIn returns whether the start tag in z.buf[z.data.start:z.data.end] case-insensitively matches any element of ss.
exp/html/token.go:388
↓ 5 callersFunctionNewTokenizer
NewTokenizer returns a new HTML Tokenizer for the given Reader. The input is assumed to be UTF-8 encoded.
exp/html/token.go:809
↓ 5 callersMethodNext
Next scans the next token and returns its type.
exp/html/token.go:585
↓ 5 callersMethodTagName
TagName returns the lower-cased name of a tag token (the `img` out of `<IMG SRC="foo">`) and whether the tag has attributes. The contents of the retur
exp/html/token.go:753
↓ 5 callersMethodsetOriginalIM
setOriginalIM sets the insertion mode to return to after completing a text or inTableText insertion mode. Section 12.2.3.1, "using the rules for".
exp/html/parse.go:397
↓ 5 callersMethodskipWhiteSpace
skipWhiteSpace skips past any white space.
exp/html/token.go:216
↓ 4 callersFunctionLookup
Lookup returns the atom whose name is s. It returns zero if there is no such atom.
exp/html/atom/atom.go:41
↓ 4 callersMethodPrint
()
goquery.go:62
↓ 4 callersFunctionadjustAttributeNames
(aa []Attribute, nameMap map[string]string)
exp/html/foreign.go:11
↓ 4 callersFunctionescape
(w writer, s string)
exp/html/escape.go:197
↓ 4 callersFunctionisSpecialElement
(element *Node)
exp/html/const.go:92
↓ 4 callersMethodreadUntilCloseAngle
readUntilCloseAngle reads until the next ">".
exp/html/token.go:330
↓ 4 callersMethodresetInsertionMode
Section 12.2.3.1, "reset the insertion mode".
exp/html/parse.go:405
↓ 3 callersFunctionParse
Parse returns the parse tree for the HTML from the given Reader. The input is assumed to be UTF-8 encoded.
exp/html/parse.go:1978
↓ 3 callersMethodRemove
Remove removes a node as a child of n. It will panic if the child's parent is not n.
exp/html/node.go:54
↓ 3 callersMethodText
Text returns the unescaped text of a text, comment or doctype token. The contents of the returned slice may change on the next call to Next.
exp/html/token.go:735
↓ 3 callersMethodToken
Token returns the next Token. The result's Data and Attr values remain valid after subsequent Next calls.
exp/html/token.go:785
↓ 3 callersMethodaddFormattingElement
Section 12.2.3.3.
exp/html/parse.go:289
↓ 3 callersFunctionbenchmarkTokenizer
(b *testing.B, level int)
exp/html/token_test.go:628
↓ 3 callersMethodclone
clone returns a new node with the same type, data and attributes. The clone has no parent and no children.
exp/html/node.go:84
↓ 3 callersFunctionconvertNewlines
convertNewlines converts "\r" and "\r\n" in s to "\n". The conversion happens in place, but the resulting slice may be shorter.
exp/html/token.go:703
↓ 3 callersFunctionfilterByFunc
Reduce the set of matched elements to those that /*match the selector or*/ pass the function's test.
goquery.go:341
↓ 3 callersMethodinBodyEndTagFormatting
(tag string)
exp/html/parse.go:1019
↓ 3 callersMethodindexOfElementInScope
indexOfElementInScope returns the index in p.oe of the highest element whose tag is in matchTags that is in scope. If no matching element is in scope,
exp/html/parse.go:103
↓ 3 callersFunctionlhash
lhash returns a uint64 whose high 32 bits are len(s) and whose low 32 bits are hash(s).
exp/html/atom/gen.go:30
↓ 3 callersMethodtagString
tagString returns a string representation of a tag Token's Data and Attr.
exp/html/token.go:78
↓ 3 callersFunctionunescape
unescape unescapes b's entities in-place, so that "a&lt;b" becomes "a<b".
exp/html/escape.go:166
↓ 3 callersFunctionwriteQuoted
writeQuoted writes s to w surrounded by quotes. Normally it will use double quotes, but if s contains a double quote, it will use single quotes. It is
exp/html/render.go:241
↓ 2 callersFunctionEscapeString
EscapeString escapes special characters like "<" to become "&lt;". It escapes only five such characters: <, >, &, ' and ". UnescapeString(EscapeString
exp/html/escape.go:236
↓ 2 callersFunctionParse
Parse a stream of html.
goquery.go:236
↓ 2 callersFunctionRender
Render renders the parse tree n to the given writer. Rendering is done on a 'best effort' basis: calling Parse on the output of Render will always re
exp/html/render.go:45
↓ 2 callersMethodTagAttr
TagAttr returns the lower-cased key and unescaped value of the next unparsed attribute for the current tag token and whether there are more attributes
exp/html/token.go:769
↓ 2 callersFunctionUnescapeString
UnescapeString unescapes entities like "&lt;" to become "<". It unescapes a larger range of entities than EscapeString escapes. For example, "&aacute;
exp/html/escape.go:250
↓ 2 callersFunction_html
html and htmlAll could be one func but heck I cba now.
goquery.go:257
↓ 2 callersFunctionadjustForeignAttributes
(aa []Attribute)
exp/html/foreign.go:19
↓ 2 callersFunctioncopyAttributes
copyAttributes copies attributes of src not found on dst to dst.
exp/html/parse.go:674
↓ 2 callersFunctiondump
(n *Node)
exp/html/parse_test.go:187
↓ 2 callersFunctiondumpIndent
(w io.Writer, level int)
exp/html/parse_test.go:103
↓ 2 callersFunctionfilterBySelector
Reduce the set of matched elements to those that match the selector /*or pass the function's test*/.
goquery.go:356
↓ 2 callersFunctionfindRecur
(ns *Nodes, selec selector)
goquery.go:129
↓ 2 callersMethodfosterParent
fosterParent adds a child node according to the foster parenting rules. Section 12.2.5.3, "foster parenting".
exp/html/parse.go:221
↓ 2 callersMethodgenerateImpliedEndTags
generateImpliedEndTags pops nodes off the stack of open elements as long as the top node has a tag name of dd, dt, li, option, optgroup, p, rp, or rt.
exp/html/parse.go:183
↓ 2 callersFunctiongetAttr
(ns Nodes, key string)
goquery.go:288
↓ 2 callersFunctiongetAttrs
(ns Nodes, key string)
goquery.go:300
↓ 2 callersFunctionhash
The hash function must be the same as the one used in atom.go
exp/html/atom/gen.go:21
↓ 2 callersFunctionhtmlAll
(ns Nodes, outer bool)
goquery.go:272
↓ 2 callersFunctionhtmlIntegrationPoint
(n *Node)
exp/html/foreign.go:34
↓ 2 callersMethodinBodyEndTagOther
inBodyEndTagOther performs the "any other end tag" algorithm for inBodyIM.
exp/html/parse.go:1144
↓ 2 callersFunctioninTableIM
Section 12.2.5.4.9.
exp/html/parse.go:1186
↓ 2 callersMethodinsert
insert inserts a node at the given index.
exp/html/node.go:125
↓ 2 callersFunctionlower
lower lower-cases the A-Z bytes in b in-place, so that "aBc" becomes "abc".
exp/html/escape.go:186
↓ 2 callersFunctionmapFromSplit
(a string)
goquery.go:90
↓ 2 callersFunctionmathMLTextIntegrationPoint
(n *Node)
exp/html/foreign.go:59
↓ 2 callersMethodparse
()
exp/html/parse.go:1963
↓ 2 callersMethodparseCurrentToken
parseCurrentToken runs the current token through the parsing routines until it is consumed.
exp/html/parse.go:1942
↓ 2 callersMethodreadTagName
readTagName sets z.data to the "div" in "<div k=v>". The reader (z.raw.end) is positioned such that the first byte of the tag name (the "d" in "<div")
exp/html/token.go:480
↓ 2 callersFunctionrender
(w writer, n *Node)
exp/html/render.go:60
↓ 2 callersFunctionsetAttrs
(ns Nodes, key, val string)
goquery.go:313
↓ 2 callersFunctionunescapeEntity
unescapeEntity reads an entity like "&lt;" from b[src:] and writes the corresponding "<" to b[dst:], returning the incremented dst and src cursors. Pr
exp/html/escape.go:57
↓ 1 callersMethodAttrs
Not in jQuery. Gets the value of an attribute for every element in a set.
goquery.go:407
↓ 1 callersMethodFilter
Reduce the set of matched elements to those that match the selector or pass the function's test.
goquery.go:435
↓ 1 callersMethodFprint
(w io.Writer)
goquery.go:56
↓ 1 callersMethodHasClass
Determine whether any of the matched elements are assigned the given class.
goquery.go:500
↓ 1 callersMethodHtml
Get the HTML contents of the first element in the set of matched elements.
goquery.go:515
↓ 1 callersMethodHtmlAll
Not in jQuery. Get the HTML contents of all elements in the set of matched elements.
goquery.go:521
↓ 1 callersFunctionParseFragment
ParseFragment parses a fragment of HTML and returns the nodes that were found. If the fragment is the InnerHTML for an existing element, pass that ele
exp/html/parse.go:1998
↓ 1 callersMethodRaw
Raw returns the unmodified text of the current token. Calling Next, Token, Text, TagName or TagAttr may change the contents of the returned slice.
exp/html/token.go:697
↓ 1 callersMethodString
()
exp/html/parse_test.go:216
↓ 1 callersMethodString
String returns the atom's name.
exp/html/atom/atom.go:32
↓ 1 callersMethodVal
Get the current value of the first element in the set of matched elements. or Set the value of each element in the set of matched elements.
goquery.go:660
↓ 1 callersMethodWrite
(p []byte)
goquery.go:22
↓ 1 callersFunctionattr
(c *selector, str string)
goquery.go:177
↓ 1 callersFunctionclass
(c *selector, str string)
goquery.go:151
↓ 1 callersFunctiondumpLevel
(w io.Writer, n *Node, level int)
exp/html/parse_test.go:127
↓ 1 callersFunctionfind
(ns *Nodes, selec string)
goquery.go:209
next →1–100 of 196, ranked by callers