MODX EXTRA

getDoctype

Creator: Devin Gaul (demon.devin)

Download (23 KB)

Screenshots

About getDoctype

With this snippet you will have the ability to display the DOCTYPE while sending the correct headers with support for content type negotiation.

It also will correct itself for the W3C validator which does not send the correct Accept header for XHTML documents.

Does NOT send XHTML 1.1 to browsers that wont accept application/xhtml+xml because the snippet will make sure the browser groks XML before sending anything.visit: labs/PHP/DOCTYPE.php#bug-fix for details and a link to the W3C XHTML for more

Information

Released
November 25, 2016
Supported Versions
2 – 2.5
Downloads
441
License
GPLv2

New in getDoctype 1.0.0-beta1

There are no release notes for this version.

More

More from Devin Gaul

Flip MODx Manager Login

Flip MODx Manager Login

Changes the default manager login page with an alternative one.

mi

middleFinger

A simple, configurable context menu to replace a browser's default…

sh

showSource

This MODx Extra snippet can show highlighted HTML source of the current…

im

image64

Converts a specified image to a base64 encoding for use within a…