Kaya 0.5.2 reference for HTMLDocument::Doctype

List of functions and data types in HTMLDocument

HTMLDocument::Doctype

Constructors

Usage

The document type declaration for the current document. You can either use HTML 4.01 or XHTML 1.0 Strict doctypes (HTML is generally recommended due to the current lack of browser support for XHTML, but you may need XHTML output if you intend to further process the document with other XML tools). This changes the <!DOCTYPE ...> declaration at the top of the document, and has other minor effects on code output.

The Transitional doctypes are not supported in Kaya - these doctypes are intended only for transitioning legacy documents, and Kaya is sufficiently new not to have any such legacy documents existing.

The TagSoup 'Doctype' cannot be used for output, but may be useful for attempting to get some form of structure out of poor quality markup entered by users and processed by readFromString.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya