# HtmlRoundTripScorer

Scores structural HTML round-trip fidelity for gallery manifests and regression tests.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRoundTripScorer.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScorer.cs#L111)

**Modifiers**

static

Scores structural HTML round-trip fidelity for gallery manifests and regression tests.

## Inheritance

- object
- HtmlRoundTripScorer

Filter members 

Show inherited

## Methods

Compare 5 overloads

`public static HtmlRoundTripScore Compare(string sourceHtml, string targetHtml)` [#](#method-compare-string-string)

[HtmlRoundTripScorer.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScorer.cs#L111)

Compares source HTML with target HTML and returns a structural score.

Parameters

**sourceHtml string required**

**targetHtml string required**

Returns

`HtmlRoundTripScore`

`public static HtmlRoundTripScore Compare(string sourceHtml, string targetHtml, HtmlArtifactReloadEvidence artifactReloadEvidence)` [#](#method-compare-string-string-officeimo-html-htmlartifactreloadevidence)

[HtmlRoundTripScorer.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScorer.cs#L121)

Compares source and target HTML with evidence captured after reopening the native artifact.

Parameters

**sourceHtml string required**

**targetHtml string required**

**artifactReloadEvidence OfficeIMO.Html.HtmlArtifactReloadEvidence required**

Returns

`HtmlRoundTripScore`

`public static HtmlRoundTripScore Compare(HtmlConversionDocument sourceDocument, HtmlConversionDocument targetDocument)` [#](#method-compare-officeimo-html-htmlconversiondocument-officeimo-html-htmlconversiondocument)

[HtmlRoundTripScorer.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScorer.cs#L131)

Compares retained conversion documents without reparsing either HTML source.

Parameters

**sourceDocument OfficeIMO.Html.HtmlConversionDocument required**

**targetDocument OfficeIMO.Html.HtmlConversionDocument required**

Returns

`HtmlRoundTripScore`

`public static HtmlRoundTripScore Compare(HtmlConversionDocument sourceDocument, HtmlConversionDocument targetDocument, HtmlArtifactReloadEvidence? artifactReloadEvidence)` [#](#method-compare-officeimo-html-htmlconversiondocument-officeimo-html-htmlconversiondocument-officeimo-html-htmlartifactreloadevidence)

[HtmlRoundTripScorer.cs:141](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScorer.cs#L141)

Compares retained conversion documents and includes actual native-artifact reload evidence.

Parameters

**sourceDocument OfficeIMO.Html.HtmlConversionDocument required**

**targetDocument OfficeIMO.Html.HtmlConversionDocument required**

**artifactReloadEvidence OfficeIMO.Html.HtmlArtifactReloadEvidence? required**

Returns

`HtmlRoundTripScore`

`public static HtmlRoundTripScore Compare(HtmlLogicalDocument source, HtmlLogicalDocument target)` [#](#method-compare-officeimo-html-htmllogicaldocument-officeimo-html-htmllogicaldocument)

[HtmlRoundTripScorer.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScorer.cs#L167)

Compares logical documents and returns a structural score.

Parameters

**source OfficeIMO.Html.HtmlLogicalDocument required**

**target OfficeIMO.Html.HtmlLogicalDocument required**

Returns

`HtmlRoundTripScore`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:55EB4764D1414262FC32134726F4AD4D1C5847E342D35469E0E78AF0E00510F5 -->
