API Reference
OfficeHtmlSemanticEnvelope
Owns the versioned OfficeIMO semantic HTML envelope contract.
Inheritance
- Object
- OfficeHtmlSemanticEnvelope
Methods
public static Void AppendRootAttributes(StringBuilder builder, String source, String profile) #VoidAppends canonical source, profile, and schema attributes to an open start tag.
Parameters
- builder System.Text.StringBuilder
- source System.String
- profile System.String
public static OfficeHtmlSemanticEnvelopeInfo Inspect(IHtmlDocument document, String expectedSource) #OfficeHtmlSemanticEnvelopeInfoInspects a parsed document using the shared compatibility rules.
Parameters
- document AngleSharp.Html.Dom.IHtmlDocument
- expectedSource System.String
public static Boolean IsSupportedVersion(String version) #BooleanReturns whether an explicit envelope schema version is accepted.
Parameters
- version System.String
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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