API Reference

Class

OfficeHtmlSemanticEnvelope

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers static

Owns the versioned OfficeIMO semantic HTML envelope contract.

Inheritance

  • Object
  • OfficeHtmlSemanticEnvelope

Methods

public static Void AppendRootAttributes(StringBuilder builder, String source, String profile) #
Returns: Void

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

Parameters

builder System.Text.StringBuilder requiredposition: 0
source System.String requiredposition: 1
profile System.String requiredposition: 2
public static OfficeHtmlSemanticEnvelopeInfo Inspect(IHtmlDocument document, String expectedSource) #
Returns: OfficeHtmlSemanticEnvelopeInfo

Inspects a parsed document using the shared compatibility rules.

Parameters

document AngleSharp.Html.Dom.IHtmlDocument requiredposition: 0
expectedSource System.String requiredposition: 1
public static Boolean IsSupportedVersion(String version) #
Returns: Boolean

Returns whether an explicit envelope schema version is accepted.

Parameters

version System.String requiredposition: 0

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