Interface ISelectorVisitor
- Namespace
- AngleSharp.Css
- Assembly
- AngleSharp.dll
Describes the interface for visiting a selector.
public interface ISelectorVisitor
- Extension Methods
Methods
Attribute(string, string, string?)
Visited by attribute selectors.
void Attribute(string name, string op, string? value)
Parameters
name
stringThe name of the attribute.
op
stringThe operator, if any.
value
stringThe value, if any.
Child(string, int, int, ISelector)
Visited by child selectors.
void Child(string name, int step, int offset, ISelector selector)
Parameters
name
stringThe name of the selector.
step
intThe step parameter.
offset
intThe offset parameter.
selector
ISelectorThe applied inner selector, if any.
Class(string)
Visited by class selectors.
void Class(string name)
Parameters
name
stringThe name of the class.
Combinator(IEnumerable<ISelector>, IEnumerable<string>)
Visited by combinator selectors.
void Combinator(IEnumerable<ISelector> selectors, IEnumerable<string> symbols)
Parameters
selectors
IEnumerable<ISelector>The contained N selectors.
symbols
IEnumerable<string>The N - 1 combinator symbols.
Id(string)
Visited by id selectors.
void Id(string value)
Parameters
value
stringThe value of the id.
List(IEnumerable<ISelector>)
Visited by comma-separated list selectors.
void List(IEnumerable<ISelector> selectors)
Parameters
selectors
IEnumerable<ISelector>The contained selectors.
Many(IEnumerable<ISelector>)
Visited by aggregated / combined selectors.
void Many(IEnumerable<ISelector> selectors)
Parameters
selectors
IEnumerable<ISelector>The combined selectors.
PseudoClass(string)
Visited by pseudo-class selectors.
void PseudoClass(string name)
Parameters
name
stringThe name of the pseudo class.
PseudoElement(string)
Visited by pseudo-element selectors.
void PseudoElement(string name)
Parameters
name
stringThe name of the pseudo element.
Type(string)
Visited by type selectors.
void Type(string name)
Parameters
name
stringThe name of the type or *.