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
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
html5
xhtmlStrict
xhtml11
xhtmlTransitional
xhtmlBasic
xhtmlRdfa10
none
Methods
createFromConfigurationKey()
public
static createFromConfigurationKey(string|null $key) : self
Parameters
- $key : string|null
Return values
selfgetDoctypeDeclaration()
public
getDoctypeDeclaration() : string
Return values
stringgetMetaCharsetTag()
public
getMetaCharsetTag() : string
Return values
stringgetXhtmlDocType()
public
getXhtmlDocType() : string
only used for backwards-compatibility, and will be removed in TYPO3 v13.0.
Return values
stringgetXhtmlVersion()
public
getXhtmlVersion() : int|null
only used for backwards-compatibility, and will be set to private in TYPO3 v13.0.
Return values
int|nullgetXmlPrologue()
public
getXmlPrologue() : string
Return values
stringisXmlCompliant()
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