Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Interface

IHtmlDomServices

OfficeIMO.Html.Dom

Namespace
OfficeIMO.Html.Dom
Assembly
OfficeIMO.Html.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
abstract

Replaceable syntax services used by an owned document without exposing provider nodes.

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Methods

public abstract bool Matches(HtmlElement element, string selector) #

Tests one element against a selector.

Parameters

element OfficeIMO.Html.Dom.HtmlElement required
selector string required

Returns

bool
public abstract IReadOnlyList<HtmlElement> QuerySelectorAll(HtmlNode scope, string selector) #

Returns matching descendant elements in document order, using the supplied scope.

Parameters

scope OfficeIMO.Html.Dom.HtmlNode required
selector string required

Returns

IReadOnlyList<HtmlElement>
public abstract string Serialize(HtmlNode node, bool childrenOnly = false) #

Serializes a node or its children as HTML without executing or loading content.

Parameters

node OfficeIMO.Html.Dom.HtmlNode required
childrenOnly bool = false optional

Returns

string