Table of Contents

Class DefaultAttributeObserver

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

Represents the default attribute observer.

public class DefaultAttributeObserver : IAttributeObserver
Inheritance
DefaultAttributeObserver
Implements
Inherited Members
Extension Methods

Constructors

DefaultAttributeObserver()

Creates a new instance.

public DefaultAttributeObserver()

Methods

RegisterObserver<TElement>(string, Action<TElement, string>)

Registers a new attribute observer.

public void RegisterObserver<TElement>(string expectedName, Action<TElement, string> callback) where TElement : IElement

Parameters

expectedName string

The name of the attribute.

callback Action<TElement, string>

The callback to invoke when the condition is met.

Type Parameters

TElement

The associated element type.

RegisterStandardObservers()

Registers the standard attribute observers, e.g., for class, style, ... attributes.

protected virtual void RegisterStandardObservers()