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
- 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
stringgetXmlPrologue()
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