DocType

Enum defining all kinds of values needed to decide on how render HTML or XML-compliant code parts of the Page Rendering.

Set to HTML5 by default in Frontend and Backend.

Table of Contents

Cases

html5
none
xhtml11
xhtmlBasic
xhtmlRdfa10
xhtmlStrict
xhtmlTransitional

Methods

createFromConfigurationKey()  : self
getDoctypeDeclaration()  : string
getMetaCharsetTag()  : string
getXhtmlDocType()  : string
getXhtmlVersion()  : int|null
getXmlPrologue()  : string
isXmlCompliant()  : bool
shouldIncludeFrameBorderAttribute()  : bool
HTML5 deprecated the "frameborder" attribute as everything should be done via styling.

Cases

Methods

createFromConfigurationKey()

public static createFromConfigurationKey(string|null $key) : self
Parameters
$key : string|null
Return values
self

getDoctypeDeclaration()

public getDoctypeDeclaration() : string
Return values
string

getMetaCharsetTag()

public getMetaCharsetTag() : string
Return values
string

getXhtmlDocType()

public getXhtmlDocType() : string
Internal

only used for backwards-compatibility, and will be removed in TYPO3 v13.0.

Return values
string

getXhtmlVersion()

public getXhtmlVersion() : int|null
Internal

only used for backwards-compatibility, and will be set to private in TYPO3 v13.0.

Return values
int|null

getXmlPrologue()

public getXmlPrologue() : string
Return values
string

isXmlCompliant()

public isXmlCompliant() : bool
Return values
bool

true if the specified doctype requires XML Compliance (needed for e.g. self-closing tags, or for the xml:ns attribute).

shouldIncludeFrameBorderAttribute()

HTML5 deprecated the "frameborder" attribute as everything should be done via styling.

public shouldIncludeFrameBorderAttribute() : bool
Return values
bool

        
On this page

Search results