# IHtmlDomServices

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

Interface 

`OfficeIMO.Html.Dom`

**Namespace**

`OfficeIMO.Html.Dom`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[HtmlDomProviders.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L17)

**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

- Property [HtmlDocument.Services](/api/html-core/officeimo-html-dom-htmldocument/#property-services)

### Accepted by parameters 1

- Constructor [HtmlDocument.HtmlDocument](/api/html-core/officeimo-html-dom-htmldocument/#constructor-ctor-officeimo-html-dom-ihtmldomservices-string-officeimo-html-dom-htmldocumentmode) parameter `services`

Filter members 

Show inherited

## Methods

`public abstract bool Matches(HtmlElement element, string selector)` [#](#method-matches-officeimo-html-dom-htmlelement-string)

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)` [#](#method-queryselectorall-officeimo-html-dom-htmlnode-string)

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)` [#](#method-serialize-officeimo-html-dom-htmlnode-boolean)

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`

<!-- PowerForge markdown artifact sha256:2F8735C0973F44F3C38D293FE45E4E0CE389C145C0D0DB5BE3EB28475DD61234 -->
