Table of Contents

Interface INonElementParentNode

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

Extensions to ParentNode nodes that are not Element nodes.

[DomName("NonElementParentNode")]
[DomNoInterfaceObject]
public interface INonElementParentNode
Extension Methods

Methods

GetElementById(string)

Returns the Element whose ID is given by elementId. If no such element exists, returns null. The behavior is not defined if more than one element have this ID.

[DomName("getElementById")]
IElement? GetElementById(string elementId)

Parameters

elementId string

A case-sensitive string representing the unique ID of the element being sought.

Returns

IElement

The matching element.