PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Page2

PEAR::HTML_Page2 is a base class for XHTML page generation.

This package is unmaintained.

Download latest release 0.6.5 (archived versions might be outdated)

License: PHP License 3.0

Description

The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page.
* supports virtually all HTML doctypes, from HTML 2.0 through XHTML 1.1 and XHTML Basic 1.0
plus preliminary support for XHTML 2.0
* namespace support
* global language declaration for the document
* line ending styles
* full META tag support
* support for stylesheet declaration in the head section
* support for script declaration in the head section
* support for linked stylesheets and scripts
* full support for header link tags
* body can be a string, object with toHtml or toString methods or an array (can be combined)

Ideas for use:
* Use to validate the output of a class for XHTML compliance
* Quick prototyping using PEAR packages is now a breeze

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#1913ClosedBug2004-07-19Notice error generated when array index not set
#1969ClosedBug2004-07-23$strHtml not initialized if not using frameset doctype variant
#2054ClosedReq2004-08-04page content is copied unnecessarily
#3204ClosedReq2005-01-14Adding Raw entries to the Header
#3259ClosedBug2005-01-21Remove control-M's
#5177Wont fixReq2005-08-22CSS declarations and CSS stylesheets should be rendered in the given order
#8859ClosedReq0.5.0beta2006-10-05BASE tag
#12769ClosedBug2007-12-24Omit CDATA for inline styles containing @import-rule
#15512ClosedReqCVS2009-01-04Upgrade to package 2.0
#16570ClosedBug0.6.0beta2009-09-05Doctype System Identifier should be 'w3' not 'w3c'.
#20952ClosedReq0.6.32015-09-29add "getBodyContent()" method