Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlRoundTripScorer

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

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

Inheritance

  • object
  • HtmlRoundTripScorer

Methods

Compare 5 overloads
public static HtmlRoundTripScore Compare(string sourceHtml, string targetHtml) #

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

Parameters

sourceHtml string required
targetHtml string required
public static HtmlRoundTripScore Compare(string sourceHtml, string targetHtml, HtmlArtifactReloadEvidence artifactReloadEvidence) #

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
public static HtmlRoundTripScore Compare(HtmlConversionDocument sourceDocument, HtmlConversionDocument targetDocument) #

Compares retained conversion documents without reparsing either HTML source.

Parameters

sourceDocument OfficeIMO.Html.HtmlConversionDocument required
targetDocument OfficeIMO.Html.HtmlConversionDocument required
public static HtmlRoundTripScore Compare(HtmlConversionDocument sourceDocument, HtmlConversionDocument targetDocument, HtmlArtifactReloadEvidence? artifactReloadEvidence) #

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
public static HtmlRoundTripScore Compare(HtmlLogicalDocument source, HtmlLogicalDocument target) #

Compares logical documents and returns a structural score.

Parameters

source OfficeIMO.Html.HtmlLogicalDocument required
target OfficeIMO.Html.HtmlLogicalDocument required