Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeHtmlSemanticEnvelope

OfficeIMO.Html

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

Owns the versioned OfficeIMO semantic HTML envelope contract.

Inheritance

  • object
  • OfficeHtmlSemanticEnvelope

Methods

public static void AppendRootAttributes(StringBuilder builder, string source, string profile) #

Appends canonical source, profile, and schema attributes to an open start tag.

Parameters

builder System.Text.StringBuilder required
source string required
profile string required
public static OfficeHtmlSemanticEnvelopeInfo Inspect(HtmlDocument document, string expectedSource) #

Inspects a parsed document using the shared compatibility rules.

Parameters

document OfficeIMO.Html.Dom.HtmlDocument required
expectedSource string required
public static bool IsSupportedVersion(string? version) #

Returns whether an explicit envelope schema version is accepted.

Parameters

version string? required

Returns

bool

Fields

public const string CurrentSchemaVersion #

Current semantic-envelope schema version emitted by OfficeIMO adapters.

Value: 2
public const string PreviousSchemaVersion #

Previous explicit schema version accepted for backward-compatible imports.

Value: 1
public const string SchemaVersionAttribute #

HTML attribute carrying the semantic-envelope schema version.

Value: data-officeimo-schema-version
public const string RestorationAttribute #

HTML attribute declaring whether restoration metadata is public-safe or caller-trusted.

Value: data-officeimo-restoration
public const string PublicSemanticsAttribute #

HTML attribute declaring the validation state of public semantic metadata.

Value: data-officeimo-public-semantics
public const string PublicSemanticsSafe #

Validated public semantic metadata marker emitted by schema version 2.

Value: safe
public const string PublicSafeRestoration #

Restoration mode that may be used at an untrusted input boundary.

Value: public-safe
public const string TrustedTargetRestoration #

Restoration mode that requires an explicitly trusted input boundary.

Value: trusted-target