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
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

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