Table of Contents

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 string

The name of the attribute.

op string

The operator, if any.

value string

The value, if any.

Child(string, int, int, ISelector)

Visited by child selectors.

void Child(string name, int step, int offset, ISelector selector)

Parameters

name string

The name of the selector.

step int

The step parameter.

offset int

The offset parameter.

selector ISelector

The applied inner selector, if any.

Class(string)

Visited by class selectors.

void Class(string name)

Parameters

name string

The 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 string

The 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 string

The name of the pseudo class.

PseudoElement(string)

Visited by pseudo-element selectors.

void PseudoElement(string name)

Parameters

name string

The name of the pseudo element.

Type(string)

Visited by type selectors.

void Type(string name)

Parameters

name string

The name of the type or *.