MCPcopy Create free account

hub / github.com/andybalholm/cascadia / functions

Functions151 in github.com/andybalholm/cascadia

↓ 14 callersMethodMatch
(n *html.Node)
selector.go:14
↓ 11 callersFunctionmatchAttribute
matches elements where the attribute named key satisifes the function f.
selector.go:310
↓ 9 callersMethodString
Returns a CSS input compiling to this selector.
selector.go:23
↓ 6 callersMethodskipWhitespace
skipWhitespace consumes whitespace characters and comments. It returns true if there was actually anything to skip.
parser.go:256
↓ 5 callersMethodSpecificity
()
selector.go:20
↓ 5 callersFunctionhasAttr
(n *html.Node, attr string)
pseudo_classes.go:356
↓ 5 callersMethodparseIdentifier
parseIdentifier parses an identifier.
parser.go:100
↓ 5 callersFunctiontoLowerASCII
toLowerASCII returns s with all ASCII capital letters lowercased.
parser.go:63
↓ 4 callersMethodMatchAll
MatchAll returns a slice of the nodes that match the selector, from n and its children.
selector.go:122
↓ 4 callersFunctionmatchInsensitiveValue
matches elements where we ignore (or not) the case of the attribute value the user attribute is the value set by the user to match elements the real a
selector.go:301
↓ 4 callersFunctionnodeString
(n *html.Node)
selector_test.go:33
↓ 3 callersFunctionCompile
Compile parses a selector and returns, if successful, a Selector object that can be used to match against html.Node objects.
selector.go:102
↓ 3 callersFunctionParseGroup
ParseGroup parses a selector, or a group of selectors separated by commas. Use `ParseGroupWithPseudoElements` if you need support for pseudo-elements.
selector.go:64
↓ 3 callersFunctionParseGroupWithPseudoElements
ParseGroupWithPseudoElements parses a selector, or a group of selectors separated by commas. It supports pseudo-elements.
selector.go:80
↓ 3 callersMethodPseudoElement
Returns a pseudo-element, or an empty string.
selector.go:26
↓ 3 callersMethodparseName
parseName parses a name (which is like an identifier, but doesn't have extra restrictions on the first character).
parser.go:126
↓ 3 callersMethodparseSelector
parseSelector parses a selector that may include combinators.
parser.go:829
↓ 3 callersMethodparseSelectorGroup
parseSelectorGroup parses a group of selectors, separated by commas.
parser.go:873
↓ 3 callersMethodparseString
parseString parses a single- or double-quoted string.
parser.go:160
↓ 2 callersMethodAdd
(other Specificity)
specificity.go:21
↓ 2 callersMethodLess
returns `true` if s < other (strictly), false otherwise
specificity.go:9
↓ 2 callersFunctionParse
Parse parses a selector. Use `ParseWithPseudoElement` if you need support for pseudo-elements.
selector.go:31
↓ 2 callersFunctionescape
espace special CSS char
serialize.go:22
↓ 2 callersFunctioninDisabledFieldset
(n *html.Node)
pseudo_classes.go:429
↓ 2 callersFunctionloadValidSelectors
(t *testing.T)
w3_test.go:60
↓ 2 callersFunctionmatchInclude
returns true if s is a whitespace-separated list that includes val.
selector.go:337
↓ 2 callersFunctionnodeOwnText
nodeOwnText returns the contents of the text nodes that are direct children of n.
pseudo_classes.go:147
↓ 2 callersFunctionnodeText
nodeText returns the text contained in n and its descendants.
pseudo_classes.go:139
↓ 2 callersMethodparseEscape
parseEscape parses a backslash escape.
parser.go:24
↓ 2 callersFunctionparseReference
(filename string)
w3_test.go:31
↓ 2 callersMethodparseRegex
parseRegex parses a regular expression; the end is defined by encountering an unmatched closing ')' or ']' which is not consumed
parser.go:222
↓ 1 callersMethodFilter
Filter returns the nodes in nodes that match the selector.
selector.go:191
↓ 1 callersMethodMatch
Match returns true if the node matches the selector.
selector.go:156
↓ 1 callersMethodMatchFirst
MatchFirst returns the first node that matches s, from n and its children.
selector.go:161
↓ 1 callersFunctionMustCompile
MustCompile is like Compile, but panics instead of returning an error.
selector.go:112
↓ 1 callersFunctionMustParseHTML
(doc string)
benchmark_test.go:10
↓ 1 callersFunctionParseWithPseudoElement
ParseWithPseudoElement parses a single selector, with support for pseudo-element.
selector.go:47
↓ 1 callersFunctionQuery
Query returns the first node that matches m, from the descendants of n. If none matches, it returns nil.
selector.go:177
↓ 1 callersFunctionQueryAll
QueryAll returns a slice of all the nodes that match m, from the descendants of n.
selector.go:151
↓ 1 callersFunctionattributeDashMatch
matches elements where the attribute named key equals val or starts with val plus a hyphen.
selector.go:352
↓ 1 callersFunctionattributeNotEqualMatch
attributeNotEqualMatch matches elements where the attribute named key does not have the value val.
selector.go:324
↓ 1 callersFunctionattributePrefixMatch
attributePrefixMatch returns a Selector that matches elements where the attribute named key starts with val.
selector.go:370
↓ 1 callersFunctionattributeRegexMatch
attributeRegexMatch matches nodes where the attribute named key matches the regular expression rx
selector.go:415
↓ 1 callersFunctionattributeSubstringMatch
attributeSubstringMatch matches nodes where the attribute named key contains val.
selector.go:400
↓ 1 callersFunctionattributeSuffixMatch
attributeSuffixMatch matches elements where the attribute named key ends with val.
selector.go:385
↓ 1 callersFunctionchildMatch
matches an element if it matches d and its parent matches a.
selector.go:526
↓ 1 callersMethodconsumeClosingParenthesis
consumeClosingParenthesis consumes a closing parenthesis and any preceding whitespace. It returns true if there was actually a parenthesis to skip.
parser.go:296
↓ 1 callersMethodconsumeParenthesis
consumeParenthesis consumes an opening parenthesis and any following whitespace. It returns true if there was actually a parenthesis to skip.
parser.go:285
↓ 1 callersFunctiondescendantMatch
matches an element if it matches d and has an ancestor that matches a.
selector.go:511
↓ 1 callersFunctiongetId
(n *html.Node)
w3_test.go:43
↓ 1 callersFunctionhasChildMatch
hasChildMatch returns whether n has any child that matches a.
pseudo_classes.go:51
↓ 1 callersFunctionhasDescendantMatch
hasDescendantMatch performs a depth-first search of n's descendants, testing whether any of them match a. It returns true as soon as a match is found,
pseudo_classes.go:63
↓ 1 callersFunctionhasLegendInPreviousSiblings
(n *html.Node)
pseudo_classes.go:420
↓ 1 callersFunctionhexDigit
(c byte)
parser.go:82
↓ 1 callersFunctionisEqual
(m map[string]int, l []string)
w3_test.go:52
↓ 1 callersMethodmatchAllInto
(n *html.Node, storage []*html.Node)
selector.go:126
↓ 1 callersFunctionnameChar
nameChar returns whether c can be a character within an identifier (not counting an escape sequence).
parser.go:94
↓ 1 callersFunctionnameStart
nameStart returns whether c can be the first character of an identifier (not counting an initial hyphen, or an escape sequence).
parser.go:88
↓ 1 callersFunctionnthChildMatch
nthChildMatch implements :nth-child(an+b). If last is true, implements :nth-last-child instead. If ofType is true, implements :nth-of-type instead.
pseudo_classes.go:177
↓ 1 callersMethodparseAttributeSelector
parseAttributeSelector parses a selector that matches by attribute value.
parser.go:353
↓ 1 callersMethodparseClassSelector
parseClassSelector parses a selector that matches by class attribute.
parser.go:335
↓ 1 callersMethodparseIDSelector
parseIDSelector parses a selector that matches by id attribute.
parser.go:317
↓ 1 callersMethodparseInteger
parseInteger parses a decimal integer.
parser.go:613
↓ 1 callersMethodparseNth
parseNth parses the argument for :nth-child (normally of the form an+b).
parser.go:633
↓ 1 callersMethodparsePseudoclassSelector
parsePseudoclassSelector parses a pseudoclass selector like :not(p) or a pseudo-element For backwards compatibility, both ':' and '::' prefix are allo
parser.go:451
↓ 1 callersMethodparseSimpleSelectorSequence
parseSimpleSelectorSequence parses a selector sequence that applies to a single element.
parser.go:755
↓ 1 callersMethodparseTypeSelector
parseTypeSelector parses a type selector (one that matches by tag name).
parser.go:308
↓ 1 callersFunctionqueryInto
(n *html.Node, m Matcher, storage []*html.Node)
selector.go:138
↓ 1 callersFunctionsetup
(selector, testHTML string)
selector_test.go:795
↓ 1 callersFunctionsetupMatcher
(selector, testHTML string)
selector_test.go:843
↓ 1 callersFunctionsetupSel
(selector, HTML string)
specificity_test.go:86
↓ 1 callersFunctionsiblingMatch
matches an element if it matches s2 and is preceded by an element that matches s1. If adjacent is true, the sibling must be immediately before the ele
selector.go:532
↓ 1 callersFunctionsimpleNthChildMatch
simpleNthChildMatch implements :nth-child(b). If ofType is true, implements :nth-of-type instead.
pseudo_classes.go:221
↓ 1 callersFunctionsimpleNthLastChildMatch
simpleNthLastChildMatch implements :nth-last-child(b). If ofType is true, implements :nth-last-of-type instead.
pseudo_classes.go:249
↓ 1 callersFunctionwriteNodeText
writeNodeText writes the text contained in n and its descendants to b.
pseudo_classes.go:127
FunctionBenchmarkMatchAll
(b *testing.B)
benchmark_test.go:47
FunctionFilter
Filter returns the nodes that match m.
selector.go:201
FunctionFuzz
Fuzz is the entrypoint used by the go-fuzz framework
fuzz/fuzz.go:6
MethodMatch
Matches elements with a given tag name.
selector.go:215
MethodMatch
Matches elements by class attribute.
selector.go:232
MethodMatch
Matches elements by id attribute.
selector.go:251
MethodMatch
Matches elements by attribute value.
selector.go:272
MethodMatch
(n *html.Node)
selector.go:437
MethodMatch
Matches elements if each sub-selectors matches.
selector.go:455
MethodMatch
(n *html.Node)
selector.go:490
MethodMatch
Match returns true if the node matches one of the single selectors.
selector.go:579
MethodMatch
(n *html.Node)
pseudo_classes.go:31
MethodMatch
(n *html.Node)
pseudo_classes.go:96
MethodMatch
(n *html.Node)
pseudo_classes.go:114
MethodMatch
(n *html.Node)
pseudo_classes.go:163
MethodMatch
Match implements :only-child. If `ofType` is true, it implements :only-of-type instead.
pseudo_classes.go:282
MethodMatch
Matches input, select, textarea and button elements.
pseudo_classes.go:311
MethodMatch
Matches empty elements.
pseudo_classes.go:320
MethodMatch
Match implements :root
pseudo_classes.go:346
MethodMatch
Match implements :link
pseudo_classes.go:365
MethodMatch
(n *html.Node)
pseudo_classes.go:374
MethodMatch
(n *html.Node)
pseudo_classes.go:388
MethodMatch
(n *html.Node)
pseudo_classes.go:407
MethodMatch
(n *html.Node)
pseudo_classes.go:444
MethodPseudoElement
()
selector.go:223
next →1–100 of 151, ranked by callers