SaaS CMS has officially launched! Learn more now.

Class PublicDocumentType

Inheritance
System.Object
PublicDocumentType
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public sealed class PublicDocumentType : Enum

Fields

Html

A DOCTYPE directive with name HTML and PUBLIC which does not match anything below.

Declaration
public const PublicDocumentType Html
Field Value
Type Description
PublicDocumentType

Html4

HTML 4 DOCTYPE detected (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> or something that starts with <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4... )

Declaration
public const PublicDocumentType Html4
Field Value
Type Description
PublicDocumentType

Html5

HTML 5 DOCTYPE detected (<!DOCTYPE html>)

Declaration
public const PublicDocumentType Html5
Field Value
Type Description
PublicDocumentType

Unknown

A DOCTYPE directive with name that is not HTML.

Declaration
public const PublicDocumentType Unknown
Field Value
Type Description
PublicDocumentType

value__

Declaration
public int value__
Field Value
Type Description
System.Int32

Xhtml10Frameset

XHTML 1.0 Frameset DOCTYPE detected (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">)

Declaration
public const PublicDocumentType Xhtml10Frameset
Field Value
Type Description
PublicDocumentType

Xhtml10Strict

XHTML 1.0 Strict DOCTYPE detected (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)

Declaration
public const PublicDocumentType Xhtml10Strict
Field Value
Type Description
PublicDocumentType

Xhtml10Transitional

XHTML 1.0 Transitional DOCTYPE detected (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">). This value is also returned for any XHTML-like DOCTYPE that does not match any of the other DOCTYPES, i e it acts as an XHTML DOCTYPE fallback.

Declaration
public const PublicDocumentType Xhtml10Transitional
Field Value
Type Description
PublicDocumentType

Xhtml11

XHTML 1.1 DOCTYPE detected (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">)

Declaration
public const PublicDocumentType Xhtml11
Field Value
Type Description
PublicDocumentType

Extension Methods