### Query HTML with Fizzler.Systems.HtmlAgilityPack QuerySelectorAll
Source: https://github.com/atifaziz/fizzler/blob/master/README.md
Loads an HTML document with HtmlAgilityPack and uses the QuerySelectorAll extension method from Fizzler.Systems.HtmlAgilityPack to select elements with CSS selectors. The example shows results for .content, p, body>p, body p, and p:first-child selectors.
```csharp
// Load the document using HTMLAgilityPack as normal
var html = new HtmlDocument();
html.LoadHtml(@"
Fizzler
CSS Selector Engine
");
// Fizzler for HtmlAgilityPack is implemented as the
// QuerySelectorAll extension method on HtmlNode
var document = html.DocumentNode;
// yields: [Fizzler
]
document.QuerySelectorAll(".content");
// yields: [Fizzler
,CSS Selector Engine
]
document.QuerySelectorAll("p");
// yields empty sequence
document.QuerySelectorAll("body>p");
// yields [Fizzler
,CSS Selector Engine
]
document.QuerySelectorAll("body p");
// yields [Fizzler
]
document.QuerySelectorAll("p:first-child");
```
--------------------------------
### OnInit() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the parser initializes. This method is called by the parser to signal the start of parsing.
```APIDOC
## OnInit() -> void
### Description
Called when the parser initializes. This method is called by the parser to signal the start of parsing.
### Method
OnInit
### Parameters
None
### Response
void
```
--------------------------------
### NamespacePrefix.IsEmpty.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets a value indicating whether the namespace prefix is empty. This property is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.IsEmpty.get
### Description
Gets a value indicating whether the namespace prefix is empty.
### Method
IsEmpty (get)
### Parameters
None
### Return Type
bool
```
--------------------------------
### NamespacePrefix.Text.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the text of the namespace prefix. This property is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.Text.get
### Description
Gets the text of the namespace prefix.
### Method
Text (get)
### Parameters
None
### Return Type
string?
```
--------------------------------
### NamespacePrefix.IsAny.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets a value indicating whether the namespace prefix represents any namespace. This property is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.IsAny.get
### Description
Gets a value indicating whether the namespace prefix represents any namespace.
### Method
IsAny (get)
### Parameters
None
### Return Type
bool
```
--------------------------------
### NamespacePrefix.IsSpecific.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets a value indicating whether the namespace prefix is specific. This property is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.IsSpecific.get
### Description
Gets a value indicating whether the namespace prefix is specific.
### Method
IsSpecific (get)
### Parameters
None
### Return Type
bool
```
--------------------------------
### NamespacePrefix.IsNone.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets a value indicating whether the namespace prefix represents no namespace. This property is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.IsNone.get
### Description
Gets a value indicating whether the namespace prefix represents no namespace.
### Method
IsNone (get)
### Parameters
None
### Return Type
bool
```
--------------------------------
### OnSelector() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the parser encounters a selector. This method is called by the parser to signal the start of a selector.
```APIDOC
## OnSelector() -> void
### Description
Called when the parser encounters a selector. This method is called by the parser to signal the start of a selector.
### Method
OnSelector
### Parameters
None
### Response
void
```
--------------------------------
### Fizzler.Token.Text
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the text of the token. This is a property on the Token class.
```APIDOC
## [PROPERTY] Fizzler.Token.Text
### Description
Gets the text of the token.
### Property
`Fizzler.Token.Text.get -> string?`
### Returns
- **string** - The text of the token, or null if not applicable.
```
--------------------------------
### SelectorGeneratorTee.AttributePrefixMatch(NamespacePrefix prefix, string name, string value)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector that matches elements with an attribute whose value starts with the specified prefix. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.AttributePrefixMatch(NamespacePrefix prefix, string name, string value)
### Description
Generates a selector that matches elements with an attribute whose value starts with the specified prefix.
### Method
AttributePrefixMatch
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix for the attribute.
- **name** (string) - Required - The attribute name.
- **value** (string) - Required - The prefix to match.
### Return Type
void
```
--------------------------------
### SelectorGeneratorTee.Primary.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the primary selector generator. This property is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.Primary.get
### Description
Gets the primary selector generator.
### Method
Primary (get)
### Parameters
None
### Return Type
ISelectorGenerator
```
--------------------------------
### Fizzler.Token.Kind
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the kind of the token. This is a property on the Token class.
```APIDOC
## [PROPERTY] Fizzler.Token.Kind
### Description
Gets the kind of the token.
### Property
`Fizzler.Token.Kind.get -> Fizzler.TokenKind`
### Returns
- **TokenKind** - The kind of the token.
```
--------------------------------
### Fizzler.SelectorGeneratorTee.Secondary
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the secondary selector generator. This is a property on the SelectorGeneratorTee class.
```APIDOC
## [PROPERTY] Fizzler.SelectorGeneratorTee.Secondary
### Description
Gets the secondary selector generator.
### Property
`Fizzler.SelectorGeneratorTee.Secondary.get -> Fizzler.ISelectorGenerator!`
### Returns
- **ISelectorGenerator** - The secondary selector generator.
```
--------------------------------
### SelectorGenerator.AttributePrefixMatch(NamespacePrefix prefix, string name, string value)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector that matches elements with an attribute whose value starts with the specified prefix. This method is part of the SelectorGenerator class.
```APIDOC
## SelectorGenerator.AttributePrefixMatch(NamespacePrefix prefix, string name, string value)
### Description
Generates a selector that matches elements with an attribute whose value starts with the specified prefix.
### Method
AttributePrefixMatch
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix for the attribute.
- **name** (string) - Required - The attribute name.
- **value** (string) - Required - The prefix to match.
### Return Type
void
```
--------------------------------
### SelectorGenerator.Selector.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the current selector. This property is part of the SelectorGenerator class.
```APIDOC
## SelectorGenerator.Selector.get
### Description
Gets the current selector.
### Method
Selector (get)
### Parameters
None
### Return Type
Selector
```
--------------------------------
### SelectorGenerator.Ops.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets the element operations used by this generator. This property is part of the SelectorGenerator class.
```APIDOC
## SelectorGenerator.Ops.get
### Description
Gets the element operations used by this generator.
### Method
Ops (get)
### Parameters
None
### Return Type
IElementOps
```
--------------------------------
### Fizzler.INegationSelectorGenerator
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Provides methods to begin and end a negation selector block. Use BeginNegation to start a negated selector and EndNegation to close it.
```APIDOC
## Interface: Fizzler.INegationSelectorGenerator
### Description
Provides methods to begin and end a negation selector block.
### Methods
- `BeginNegation() -> void`
- `EndNegation() -> void`
```
--------------------------------
### Reader.HasMore.get
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Gets a value indicating whether the reader has more items to read. This property is part of the Reader class.
```APIDOC
## Reader.HasMore.get
### Description
Gets a value indicating whether the reader has more items to read.
### Method
HasMore (get)
### Parameters
None
### Return Type
bool
```
--------------------------------
### SelectorGeneratorTee.OnInit()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the parser initializes a new selector group. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.OnInit()
### Description
Called when the parser initializes a new selector group.
### Method
OnInit
### Parameters
None
### Return Type
void
```
--------------------------------
### NamespacePrefix.NamespacePrefix()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the NamespacePrefix class. This constructor is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.NamespacePrefix()
### Description
Initializes a new instance of the NamespacePrefix class.
### Method
NamespacePrefix (constructor)
### Parameters
None
### Return Type
void
```
--------------------------------
### NamespacePrefix.NamespacePrefix(string? text)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the NamespacePrefix class with the specified text. This constructor is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.NamespacePrefix(string? text)
### Description
Initializes a new instance of the NamespacePrefix class with the specified text.
### Method
NamespacePrefix (constructor)
### Parameters
- **text** (string?) - Required - The text for the namespace prefix.
### Return Type
void
```
--------------------------------
### Fizzler.HumanReadableSelectorGenerator.OnInit()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the selector generation is initialized. This is a virtual method on the HumanReadableSelectorGenerator class.
```APIDOC
## [METHOD] Fizzler.HumanReadableSelectorGenerator.OnInit()
### Description
Called when the selector generation is initialized.
### Method
virtual
### Signature
`virtual Fizzler.HumanReadableSelectorGenerator.OnInit() -> void`
```
--------------------------------
### Universal(NamespacePrefix prefix) -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a universal selector. This method is called by the parser to emit a universal selector.
```APIDOC
## Universal(NamespacePrefix prefix) -> void
### Description
Generates a universal selector. This method is called by the parser to emit a universal selector.
### Method
Universal
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix for the universal selector.
### Response
void
```
--------------------------------
### SelectorGeneratorTee.BeginNegation()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Begins a negation selector. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.BeginNegation()
### Description
Begins a negation selector.
### Method
BeginNegation
### Parameters
None
### Return Type
void
```
--------------------------------
### Fizzler.Token.Token()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the Token class. This is a constructor.
```APIDOC
## [CONSTRUCTOR] Fizzler.Token.Token()
### Description
Initializes a new instance of the Token class.
### Method
constructor
### Signature
`Fizzler.Token.Token() -> void`
```
--------------------------------
### ISelectorGenerator.OnInit()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the parser initializes a new selector group. This method is part of the ISelectorGenerator interface used to build CSS selector expressions.
```APIDOC
## ISelectorGenerator.OnInit()
### Description
Called when the parser initializes a new selector group.
### Method
OnInit
### Parameters
None
### Return Type
void
```
--------------------------------
### Fizzler.Token.Tilde()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a tilde. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Tilde()
### Description
Creates a token representing a tilde.
### Method
static
### Signature
`static Fizzler.Token.Tilde() -> Fizzler.Token`
### Returns
- **Token** - A token representing a tilde.
```
--------------------------------
### NamespacePrefix.Format(string name)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Formats a namespace prefix with the given name. This method is part of the NamespacePrefix type.
```APIDOC
## NamespacePrefix.Format(string name)
### Description
Formats a namespace prefix with the given name.
### Method
Format
### Parameters
- **name** (string) - Required - The name to format.
### Return Type
string
```
--------------------------------
### Fizzler.NamespacePrefix.Any
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Represents the 'any' namespace prefix. This is a static readonly field on the NamespacePrefix class.
```APIDOC
## [STATIC FIELD] Fizzler.NamespacePrefix.Any
### Description
Represents the 'any' namespace prefix.
### Field
`static readonly Fizzler.NamespacePrefix.Any -> Fizzler.NamespacePrefix`
```
--------------------------------
### SelectorGenerator.BeginNegation()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Begins a negation selector. This method is part of the SelectorGenerator class.
```APIDOC
## SelectorGenerator.BeginNegation()
### Description
Begins a negation selector.
### Method
BeginNegation
### Parameters
None
### Return Type
void
```
--------------------------------
### GeneralSibling() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a general sibling combinator selector. This method is called by the parser to emit a general sibling combinator.
```APIDOC
## GeneralSibling() -> void
### Description
Generates a general sibling combinator selector. This method is called by the parser to emit a general sibling combinator.
### Method
GeneralSibling
### Parameters
None
### Response
void
```
--------------------------------
### Fizzler.Token.Plus()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a plus sign. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Plus()
### Description
Creates a token representing a plus sign.
### Method
static
### Signature
`static Fizzler.Token.Plus() -> Fizzler.Token`
### Returns
- **Token** - A token representing a plus sign.
```
--------------------------------
### Fizzler.Token.PrefixMatch()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a prefix match. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.PrefixMatch()
### Description
Creates a token representing a prefix match.
### Method
static
### Signature
`static Fizzler.Token.PrefixMatch() -> Fizzler.Token`
### Returns
- **Token** - A token representing a prefix match.
```
--------------------------------
### FirstChild() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector for the first child of an element. This method is called by the parser to emit a first-child selector.
```APIDOC
## FirstChild() -> void
### Description
Generates a selector for the first child of an element. This method is called by the parser to emit a first-child selector.
### Method
FirstChild
### Parameters
None
### Response
void
```
--------------------------------
### Fizzler.Token.Includes()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing an includes match. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Includes()
### Description
Creates a token representing an includes match.
### Method
static
### Signature
`static Fizzler.Token.Includes() -> Fizzler.Token`
### Returns
- **Token** - A token representing an includes match.
```
--------------------------------
### Fizzler.Token.Pipe()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a pipe. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Pipe()
### Description
Creates a token representing a pipe.
### Method
static
### Signature
`static Fizzler.Token.Pipe() -> Fizzler.Token`
### Returns
- **Token** - A token representing a pipe.
```
--------------------------------
### Fizzler.Token.DashMatch()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a dash match. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.DashMatch()
### Description
Creates a token representing a dash match.
### Method
static
### Signature
`static Fizzler.Token.DashMatch() -> Fizzler.Token`
### Returns
- **Token** - A token representing a dash match.
```
--------------------------------
### Fizzler.NamespacePrefix.ToString()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Returns a string representation of the namespace prefix. This is an override method on the NamespacePrefix class.
```APIDOC
## [METHOD] Fizzler.NamespacePrefix.ToString()
### Description
Returns a string representation of the namespace prefix.
### Method
instance
### Signature
`override Fizzler.NamespacePrefix.ToString() -> string!`
### Returns
- **string** - A string representation of the namespace prefix.
```
--------------------------------
### Fizzler.SelectorGeneratorTee.Universal(NamespacePrefix prefix)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Handles a universal selector with the given namespace prefix. This is a method on the SelectorGeneratorTee class.
```APIDOC
## [METHOD] Fizzler.SelectorGeneratorTee.Universal(NamespacePrefix prefix)
### Description
Handles a universal selector with the given namespace prefix.
### Method
instance
### Signature
`Fizzler.SelectorGeneratorTee.Universal(Fizzler.NamespacePrefix prefix) -> void`
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix.
```
--------------------------------
### SelectorGenerator.SelectorGenerator(IElementOps ops)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the SelectorGenerator class with the specified element operations. This constructor is part of the SelectorGenerator class.
```APIDOC
## SelectorGenerator.SelectorGenerator(IElementOps ops)
### Description
Initializes a new instance of the SelectorGenerator class with the specified element operations.
### Method
SelectorGenerator (constructor)
### Parameters
- **ops** (IElementOps) - Required - The element operations.
### Return Type
void
```
--------------------------------
### SelectorGenerator.SelectorGenerator(IElementOps ops, IEqualityComparer? equalityComparer)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the SelectorGenerator class with the specified element operations and equality comparer. This constructor is part of the SelectorGenerator class.
```APIDOC
## SelectorGenerator.SelectorGenerator(IElementOps ops, IEqualityComparer? equalityComparer)
### Description
Initializes a new instance of the SelectorGenerator class with the specified element operations and equality comparer.
### Method
SelectorGenerator (constructor)
### Parameters
- **ops** (IElementOps) - Required - The element operations.
- **equalityComparer** (IEqualityComparer?) - Optional - The equality comparer.
### Return Type
void
```
--------------------------------
### Fizzler.Token.Star()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a star. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Star()
### Description
Creates a token representing a star.
### Method
static
### Signature
`static Fizzler.Token.Star() -> Fizzler.Token`
### Returns
- **Token** - A token representing a star.
```
--------------------------------
### SelectorGeneratorTee.GeneralSibling()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a general sibling combinator selector. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.GeneralSibling()
### Description
Generates a general sibling combinator selector.
### Method
GeneralSibling
### Parameters
None
### Return Type
void
```
--------------------------------
### Reader.Reader(IEnumerable e)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the Reader class with the specified enumerable. This constructor is part of the Reader class.
```APIDOC
## Reader.Reader(IEnumerable e)
### Description
Initializes a new instance of the Reader class with the specified enumerable.
### Method
Reader (constructor)
### Parameters
- **e** (IEnumerable) - Required - The enumerable to read from.
### Return Type
void
```
--------------------------------
### Type(NamespacePrefix prefix, string type) -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector for an element of the specified type. This method is called by the parser to emit a type selector.
```APIDOC
## Type(NamespacePrefix prefix, string type) -> void
### Description
Generates a selector for an element of the specified type. This method is called by the parser to emit a type selector.
### Method
Type
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix of the type.
- **type** (string) - Required - The element type name.
### Response
void
```
--------------------------------
### Fizzler.Token.String(string text)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a string with the given text. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.String(string text)
### Description
Creates a token representing a string with the given text.
### Method
static
### Signature
`static Fizzler.Token.String(string? text) -> Fizzler.Token`
### Parameters
- **text** (string) - Optional - The string text.
### Returns
- **Token** - A token representing the string.
```
--------------------------------
### Fizzler.Token.Equals()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing an equals sign. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Equals()
### Description
Creates a token representing an equals sign.
### Method
static
### Signature
`static Fizzler.Token.Equals() -> Fizzler.Token`
### Returns
- **Token** - A token representing an equals sign.
```
--------------------------------
### Fizzler.Token.Hash(string text)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a hash with the given text. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Hash(string text)
### Description
Creates a token representing a hash with the given text.
### Method
static
### Signature
`static Fizzler.Token.Hash(string! text) -> Fizzler.Token`
### Parameters
- **text** (string) - Required - The hash text.
### Returns
- **Token** - A token representing the hash.
```
--------------------------------
### Fizzler.NamespacePrefix.None
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Represents no namespace prefix. This is a static readonly field on the NamespacePrefix class.
```APIDOC
## [STATIC FIELD] Fizzler.NamespacePrefix.None
### Description
Represents no namespace prefix.
### Field
`static readonly Fizzler.NamespacePrefix.None -> Fizzler.NamespacePrefix`
```
--------------------------------
### Fizzler.Token.SubstringMatch()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a substring match. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.SubstringMatch()
### Description
Creates a token representing a substring match.
### Method
static
### Signature
`static Fizzler.Token.SubstringMatch() -> Fizzler.Token`
### Returns
- **Token** - A token representing a substring match.
```
--------------------------------
### Empty() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector for an empty element. This method is called by the parser to emit an empty selector.
```APIDOC
## Empty() -> void
### Description
Generates a selector for an empty element. This method is called by the parser to emit an empty selector.
### Method
Empty
### Parameters
None
### Response
void
```
--------------------------------
### Fizzler.SelectorsCachingCompiler.Create(Func compiler, IDictionary cache)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a caching compiler that wraps the provided compiler function and uses the given cache. This is a static method on the SelectorsCachingCompiler class.
```APIDOC
## [STATIC] Fizzler.SelectorsCachingCompiler.Create(Func compiler, IDictionary cache)
### Description
Creates a caching compiler that wraps the provided compiler function and uses the given cache.
### Method
static
### Signature
`static Fizzler.SelectorsCachingCompiler.Create(System.Func! compiler, System.Collections.Generic.IDictionary? cache) -> System.Func!`
### Parameters
- **compiler** (Func) - Required - The compiler function to wrap.
- **cache** (IDictionary) - Optional - The cache to use for compiled results.
### Returns
- **Func** - A caching compiler function.
```
--------------------------------
### Reader.Reader(IEnumerator e)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the Reader class with the specified enumerator. This constructor is part of the Reader class.
```APIDOC
## Reader.Reader(IEnumerator e)
### Description
Initializes a new instance of the Reader class with the specified enumerator.
### Method
Reader (constructor)
### Parameters
- **e** (IEnumerator) - Required - The enumerator to read from.
### Return Type
void
```
--------------------------------
### Fizzler.Token.Dot()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a dot. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Dot()
### Description
Creates a token representing a dot.
### Method
static
### Signature
`static Fizzler.Token.Dot() -> Fizzler.Token`
### Returns
- **Token** - A token representing a dot.
```
--------------------------------
### Class(string clazz) -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector for an element with the specified class name. This method is called by the parser to emit a class selector.
```APIDOC
## Class(string clazz) -> void
### Description
Generates a selector for an element with the specified class name. This method is called by the parser to emit a class selector.
### Method
Class
### Parameters
- **clazz** (string) - Required - The class name to match.
### Response
void
```
--------------------------------
### ISelectorGenerator.Universal(NamespacePrefix prefix)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a universal selector that matches any element within the specified namespace. This method is part of the ISelectorGenerator interface used to build CSS selector expressions.
```APIDOC
## ISelectorGenerator.Universal(NamespacePrefix prefix)
### Description
Generates a universal selector that matches any element within the specified namespace.
### Method
Universal
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix.
### Return Type
void
```
--------------------------------
### Fizzler.Token.Colon()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a colon. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Colon()
### Description
Creates a token representing a colon.
### Method
static
### Signature
`static Fizzler.Token.Colon() -> Fizzler.Token`
### Returns
- **Token** - A token representing a colon.
```
--------------------------------
### Fizzler.Token.Integer(string text)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing an integer with the given text. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Integer(string text)
### Description
Creates a token representing an integer with the given text.
### Method
static
### Signature
`static Fizzler.Token.Integer(string! text) -> Fizzler.Token`
### Parameters
- **text** (string) - Required - The integer text.
### Returns
- **Token** - A token representing the integer.
```
--------------------------------
### Fizzler.Token.Comma()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a comma. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Comma()
### Description
Creates a token representing a comma.
### Method
static
### Signature
`static Fizzler.Token.Comma() -> Fizzler.Token`
### Returns
- **Token** - A token representing a comma.
```
--------------------------------
### Fizzler.NamespacePrefix.Empty
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Represents the empty namespace prefix. This is a static readonly field on the NamespacePrefix class.
```APIDOC
## [STATIC FIELD] Fizzler.NamespacePrefix.Empty
### Description
Represents the empty namespace prefix.
### Field
`static readonly Fizzler.NamespacePrefix.Empty -> Fizzler.NamespacePrefix`
```
--------------------------------
### Fizzler.Token.RightBracket()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a right bracket. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.RightBracket()
### Description
Creates a token representing a right bracket.
### Method
static
### Signature
`static Fizzler.Token.RightBracket() -> Fizzler.Token`
### Returns
- **Token** - A token representing a right bracket.
```
--------------------------------
### Fizzler.Token.Function(string text)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a function with the given text. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Function(string text)
### Description
Creates a token representing a function with the given text.
### Method
static
### Signature
`static Fizzler.Token.Function(string! text) -> Fizzler.Token`
### Parameters
- **text** (string) - Required - The function text.
### Returns
- **Token** - A token representing the function.
```
--------------------------------
### Fizzler.SelectorsCachingCompiler.Create(Func compiler)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a caching compiler that wraps the provided compiler function. This is a static method on the SelectorsCachingCompiler class.
```APIDOC
## [STATIC] Fizzler.SelectorsCachingCompiler.Create(Func compiler)
### Description
Creates a caching compiler that wraps the provided compiler function.
### Method
static
### Signature
`static Fizzler.SelectorsCachingCompiler.Create(System.Func! compiler) -> System.Func!`
### Parameters
- **compiler** (Func) - Required - The compiler function to wrap.
### Returns
- **Func** - A caching compiler function.
```
--------------------------------
### Fizzler.IElementOps
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Defines operations for building selectors for a specific element type. Each method returns a Selector that can be used to match elements.
```APIDOC
## Interface: Fizzler.IElementOps
### Description
Defines operations for building selectors for a specific element type.
### Methods
- `Adjacent() -> Fizzler.Selector`
- `AttributeDashMatch(Fizzler.NamespacePrefix prefix, string name, string value) -> Fizzler.Selector`
- `AttributeExact(Fizzler.NamespacePrefix prefix, string name, string value) -> Fizzler.Selector`
- `AttributeExists(Fizzler.NamespacePrefix prefix, string name) -> Fizzler.Selector`
- `AttributeIncludes(Fizzler.NamespacePrefix prefix, string name, string value) -> Fizzler.Selector`
- `AttributePrefixMatch(Fizzler.NamespacePrefix prefix, string name, string value) -> Fizzler.Selector`
- `AttributeSubstring(Fizzler.NamespacePrefix prefix, string name, string value) -> Fizzler.Selector`
- `AttributeSuffixMatch(Fizzler.NamespacePrefix prefix, string name, string value) -> Fizzler.Selector`
- `Child() -> Fizzler.Selector`
- `Class(string clazz) -> Fizzler.Selector`
- `Descendant() -> Fizzler.Selector`
- `Empty() -> Fizzler.Selector`
- `FirstChild() -> Fizzler.Selector`
- `GeneralSibling() -> Fizzler.Selector`
- `Id(string id) -> Fizzler.Selector`
- `LastChild() -> Fizzler.Selector`
- `NthChild(int a, int b) -> Fizzler.Selector`
- `NthLastChild(int a, int b) -> Fizzler.Selector`
- `OnlyChild() -> Fizzler.Selector`
- `Type(Fizzler.NamespacePrefix prefix, string name) -> Fizzler.Selector`
- `Universal(Fizzler.NamespacePrefix prefix) -> Fizzler.Selector`
```
--------------------------------
### Fizzler.Token.Char(char ch)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a character. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Char(char ch)
### Description
Creates a token representing a character.
### Method
static
### Signature
`static Fizzler.Token.Char(char ch) -> Fizzler.Token`
### Parameters
- **ch** (char) - Required - The character to represent.
### Returns
- **Token** - A token representing the character.
```
--------------------------------
### Fizzler.Token.SuffixMatch()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a suffix match. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.SuffixMatch()
### Description
Creates a token representing a suffix match.
### Method
static
### Signature
`static Fizzler.Token.SuffixMatch() -> Fizzler.Token`
### Returns
- **Token** - A token representing a suffix match.
```
--------------------------------
### Reader.Peek()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Returns the next item without advancing the reader. This method is part of the Reader class.
```APIDOC
## Reader.Peek()
### Description
Returns the next item without advancing the reader.
### Method
Peek
### Parameters
None
### Return Type
T
```
--------------------------------
### Fizzler.Token.Not()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a negation. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Not()
### Description
Creates a token representing a negation.
### Method
static
### Signature
`static Fizzler.Token.Not() -> Fizzler.Token`
### Returns
- **Token** - A token representing a negation.
```
--------------------------------
### SelectorGeneratorTee.Class(string clazz)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a class selector. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.Class(string clazz)
### Description
Generates a class selector.
### Method
Class
### Parameters
- **clazz** (string) - Required - The CSS class name.
### Return Type
void
```
--------------------------------
### SelectorGeneratorTee.FirstChild()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector that matches elements that are the first child of their parent. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.FirstChild()
### Description
Generates a selector that matches elements that are the first child of their parent.
### Method
FirstChild
### Parameters
None
### Return Type
void
```
--------------------------------
### Id(string id) -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector for an element with the specified ID. This method is called by the parser to emit an ID selector.
```APIDOC
## Id(string id) -> void
### Description
Generates a selector for an element with the specified ID. This method is called by the parser to emit an ID selector.
### Method
Id
### Parameters
- **id** (string) - Required - The ID to match.
### Response
void
```
--------------------------------
### SelectorGeneratorTee.AttributeExists(NamespacePrefix prefix, string name)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector that matches elements that have the specified attribute. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.AttributeExists(NamespacePrefix prefix, string name)
### Description
Generates a selector that matches elements that have the specified attribute.
### Method
AttributeExists
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix for the attribute.
- **name** (string) - Required - The attribute name.
### Return Type
void
```
--------------------------------
### Fizzler.Token.WhiteSpace(string space)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing whitespace with the given space string. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.WhiteSpace(string space)
### Description
Creates a token representing whitespace with the given space string.
### Method
static
### Signature
`static Fizzler.Token.WhiteSpace(string! space) -> Fizzler.Token`
### Parameters
- **space** (string) - Required - The whitespace string.
### Returns
- **Token** - A token representing whitespace.
```
--------------------------------
### Fizzler.Token.Eoi()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing end-of-input. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Eoi()
### Description
Creates a token representing end-of-input.
### Method
static
### Signature
`static Fizzler.Token.Eoi() -> Fizzler.Token`
### Returns
- **Token** - A token representing end-of-input.
```
--------------------------------
### Fizzler.Token.RightParenthesis()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a right parenthesis. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.RightParenthesis()
### Description
Creates a token representing a right parenthesis.
### Method
static
### Signature
`static Fizzler.Token.RightParenthesis() -> Fizzler.Token`
### Returns
- **Token** - A token representing a right parenthesis.
```
--------------------------------
### Reader.Read()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Reads the next item from the reader. This method is part of the Reader class.
```APIDOC
## Reader.Read()
### Description
Reads the next item from the reader.
### Method
Read
### Parameters
None
### Return Type
T
```
--------------------------------
### Descendant() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a descendant combinator selector. This method is called by the parser to emit a descendant combinator.
```APIDOC
## Descendant() -> void
### Description
Generates a descendant combinator selector. This method is called by the parser to emit a descendant combinator.
### Method
Descendant
### Parameters
None
### Response
void
```
--------------------------------
### Fizzler.SelectorGeneratorTee.SelectorGeneratorTee(ISelectorGenerator primary, ISelectorGenerator secondary)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Initializes a new instance of the SelectorGeneratorTee class with the specified primary and secondary generators. This is a constructor.
```APIDOC
## [CONSTRUCTOR] Fizzler.SelectorGeneratorTee.SelectorGeneratorTee(ISelectorGenerator primary, ISelectorGenerator secondary)
### Description
Initializes a new instance of the SelectorGeneratorTee class with the specified primary and secondary generators.
### Method
constructor
### Signature
`Fizzler.SelectorGeneratorTee.SelectorGeneratorTee(Fizzler.ISelectorGenerator! primary, Fizzler.ISelectorGenerator! secondary) -> void`
### Parameters
- **primary** (ISelectorGenerator) - Required - The primary selector generator.
- **secondary** (ISelectorGenerator) - Required - The secondary selector generator.
```
--------------------------------
### Fizzler.Token.ToString()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Returns a string representation of the token. This is an override method on the Token class.
```APIDOC
## [METHOD] Fizzler.Token.ToString()
### Description
Returns a string representation of the token.
### Method
instance
### Signature
`override Fizzler.Token.ToString() -> string!`
### Returns
- **string** - A string representation of the token.
```
--------------------------------
### SelectorGeneratorTee.OnSelector()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the parser completes a selector. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.OnSelector()
### Description
Called when the parser completes a selector.
### Method
OnSelector
### Parameters
None
### Return Type
void
```
--------------------------------
### SelectorGeneratorTee.AttributeExact(NamespacePrefix prefix, string name, string value)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector that matches elements with an attribute whose value exactly equals the specified value. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.AttributeExact(NamespacePrefix prefix, string name, string value)
### Description
Generates a selector that matches elements with an attribute whose value exactly equals the specified value.
### Method
AttributeExact
### Parameters
- **prefix** (NamespacePrefix) - Required - The namespace prefix for the attribute.
- **name** (string) - Required - The attribute name.
- **value** (string) - Required - The exact value to match.
### Return Type
void
```
--------------------------------
### Fizzler.Token.Greater()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a greater-than sign. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Greater()
### Description
Creates a token representing a greater-than sign.
### Method
static
### Signature
`static Fizzler.Token.Greater() -> Fizzler.Token`
### Returns
- **Token** - A token representing a greater-than sign.
```
--------------------------------
### SelectorGeneratorTee.Child()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a child combinator selector. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.Child()
### Description
Generates a child combinator selector.
### Method
Child
### Parameters
None
### Return Type
void
```
--------------------------------
### Fizzler.SelectorGenerator.Child()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Handles a child combinator. This is a virtual method on the SelectorGenerator class.
```APIDOC
## [METHOD] Fizzler.SelectorGenerator.Child()
### Description
Handles a child combinator.
### Method
virtual
### Signature
`virtual Fizzler.SelectorGenerator.Child() -> void`
```
--------------------------------
### NthChild(int a, int b) -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector for the nth child of an element. This method is called by the parser to emit an nth-child selector.
```APIDOC
## NthChild(int a, int b) -> void
### Description
Generates a selector for the nth child of an element. This method is called by the parser to emit an nth-child selector.
### Method
NthChild
### Parameters
- **a** (int) - Required - The coefficient of the nth-child formula.
- **b** (int) - Required - The constant of the nth-child formula.
### Response
void
```
--------------------------------
### SelectorGeneratorTee.Descendant()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a descendant combinator selector. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.Descendant()
### Description
Generates a descendant combinator selector.
### Method
Descendant
### Parameters
None
### Return Type
void
```
--------------------------------
### SelectorGeneratorTee.Empty()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Generates a selector that matches elements with no children. This method is part of the SelectorGeneratorTee class.
```APIDOC
## SelectorGeneratorTee.Empty()
### Description
Generates a selector that matches elements with no children.
### Method
Empty
### Parameters
None
### Return Type
void
```
--------------------------------
### Fizzler.Tokener.Tokenize(string input)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Tokenizes the given input string into a sequence of tokens. This is a static method on the Tokener class.
```APIDOC
## [STATIC] Fizzler.Tokener.Tokenize(string input)
### Description
Tokenizes the given input string into a sequence of tokens.
### Method
static
### Signature
`static Fizzler.Tokener.Tokenize(string? input) -> System.Collections.Generic.IEnumerable!`
### Parameters
- **input** (string) - Required - The input string to tokenize.
### Returns
- **IEnumerable** - A sequence of tokens.
```
--------------------------------
### Fizzler.Token.LeftBracket()
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing a left bracket. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.LeftBracket()
### Description
Creates a token representing a left bracket.
### Method
static
### Signature
`static Fizzler.Token.LeftBracket() -> Fizzler.Token`
### Returns
- **Token** - A token representing a left bracket.
```
--------------------------------
### Fizzler.Token.Ident(string text)
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Creates a token representing an identifier with the given text. This is a static factory method on the Token class.
```APIDOC
## [STATIC] Fizzler.Token.Ident(string text)
### Description
Creates a token representing an identifier with the given text.
### Method
static
### Signature
`static Fizzler.Token.Ident(string! text) -> Fizzler.Token`
### Parameters
- **text** (string) - Required - The identifier text.
### Returns
- **Token** - A token representing the identifier.
```
--------------------------------
### OnClose() -> void
Source: https://github.com/atifaziz/fizzler/blob/master/src/PublicAPI.Shipped.txt
Called when the parser closes a selector. This method is called by the parser to signal the end of a selector.
```APIDOC
## OnClose() -> void
### Description
Called when the parser closes a selector. This method is called by the parser to signal the end of a selector.
### Method
OnClose
### Parameters
None
### Response
void
```