Interface ISelector
- Namespace
- AngleSharp.Css.Dom
- Assembly
- AngleSharp.dll
Represents a CSS selector for matching elements. More information: http://dev.w3.org/csswg/selectors4/
public interface ISelector
- Extension Methods
Properties
Specificity
Gets the specificity of the given selector.
Priority Specificity { get; }
Property Value
Text
Gets the string representation of the selector.
string Text { get; }
Property Value
Methods
Accept(ISelectorVisitor)
Accepts a selector visitor to expose more information.
void Accept(ISelectorVisitor visitor)
Parameters
visitor
ISelectorVisitorThe visitor for showing around.
Match(IElement, IElement?)
Determines if the given object is matched by this selector.
bool Match(IElement element, IElement? scope)
Parameters
Returns
- bool
True if the selector matches the given element, otherwise false.