OfficeHtmlSemanticEnvelope
OfficeIMO.Html
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
- source string
- profile string
public static OfficeHtmlSemanticEnvelopeInfo Inspect(HtmlDocument document, string expectedSource) #Inspects a parsed document using the shared compatibility rules.
Parameters
- document OfficeIMO.Html.Dom.HtmlDocument
- expectedSource string
public static bool IsSupportedVersion(string? version) #Returns whether an explicit envelope schema version is accepted.
Parameters
- version string?
Returns
boolInherited Methods
Fields
public const string CurrentSchemaVersion #Current semantic-envelope schema version emitted by OfficeIMO adapters.
2public const string PreviousSchemaVersion #Previous explicit schema version accepted for backward-compatible imports.
1public const string SchemaVersionAttribute #HTML attribute carrying the semantic-envelope schema version.
data-officeimo-schema-versionpublic const string RestorationAttribute #HTML attribute declaring whether restoration metadata is public-safe or caller-trusted.
data-officeimo-restorationpublic const string PublicSemanticsAttribute #HTML attribute declaring the validation state of public semantic metadata.
data-officeimo-public-semanticspublic const string PublicSemanticsSafe #Validated public semantic metadata marker emitted by schema version 2.
safepublic const string PublicSafeRestoration #Restoration mode that may be used at an untrusted input boundary.
public-safepublic const string TrustedTargetRestoration #Restoration mode that requires an explicitly trusted input boundary.
trusted-target