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
Maintainers
- Klaus Guenther (thesaur) — lead, active
Dependencies
Required
- PHP (>= 4.3.0)
- PEAR Installer (>= 1.5.4)
- HTML_Common (>= 1.2)
Releases
- 0.6.5 (beta, 2015-12-09)
Release notes
License: PHP License 3.0
QA release
* Added handling of html5 'defer' and 'async' attributes on 'script' tag with 'src' attribute.
* Incremental changes for PHP5+ support. - 0.6.4 (beta, 2015-10-21)
Release notes
License: PHP License 3.0
QA release
Request #20952 Add "getBodyContent()" method [kguest]
- 0.6.3 (beta, 2012-04-09)
Release notes
License: PHP License 3.0
QA release
Request #3204 Adding Raw entries to the Header
- 0.6.2 (beta, 2011-09-08)
Release notes
License: PHP License 3.0
Bug #12769: Omit CDATA for inline styles containing @import-rule [kguest]
- 0.6.1beta (beta, 2011-09-08)
Release notes
License: PHP License 3.0
Bug #16570 Doctype System Identifier should be 'w3' not 'w3c'. [kguest]
- 0.6.0beta (beta, 2009-01-29)
Release notes
License: PHP License 3.0
Frameset support(?)
Bug #1913 Notice error generated when array index not set thesaur
Bug #1969 $strHtml not initialized if not using frameset doctype variant thesaur
Bug #2054 4.3.3 Linux page content is copied unnecessarily iwarner
Bug #3259 Remove control-M's iwarner
Bug #8859 Win XP BASE tag iwarner
Request #15512 package2.0 xml doconnor - 0.5.0beta (beta, 2004-06-07)
Release notes
License: PHP License 3.0
This release is completely XHTML compliant, and has some great features:
* Line ending style
* Full charset support
* Doctype definitions
* Namespace definitions
* Mime encoding declaration
* Global document language
* Full META tag support, including "http-equiv"
* Suport for stylesheet and script declarations in the head section
* Support for linked stylesheets and scripts (including CSS 2.0 media specific definitions)
* Can output directly to a fileNote: This release does not support framesets.
New features:
* HTML 4.0 doctype support
* #814 (Feature request: prependBodyContent)
* Full link tag support (including shortcut for adding favorites icon) (Jason Giangrande)
* addBodyContent now also takes an additional parameter
* Basic support for multiple script and style generation (#698)Bugfixes (since HTML_Page 2.0.0.RC2)
* #800 (Output "Object" prior to HTML if doctype is unknown)
* #950 (fixes reiterative recursion when generating string)
* #951 (unset META tag was not possible; now use unsetMetaData)
* Fixed meta tag, title order for pre-XHTML compatibility# major inline documentation update
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1913 | Closed | Bug | 2004-07-19 | Notice error generated when array index not set | |
| #1969 | Closed | Bug | 2004-07-23 | $strHtml not initialized if not using frameset doctype variant | |
| #2054 | Closed | Req | 2004-08-04 | page content is copied unnecessarily | |
| #3204 | Closed | Req | 2005-01-14 | Adding Raw entries to the Header | |
| #3259 | Closed | Bug | 2005-01-21 | Remove control-M's | |
| #5177 | Wont fix | Req | 2005-08-22 | CSS declarations and CSS stylesheets should be rendered in the given order | |
| #8859 | Closed | Req | 0.5.0beta | 2006-10-05 | BASE tag |
| #12769 | Closed | Bug | 2007-12-24 | Omit CDATA for inline styles containing @import-rule | |
| #15512 | Closed | Req | CVS | 2009-01-04 | Upgrade to package 2.0 |
| #16570 | Closed | Bug | 0.6.0beta | 2009-09-05 | Doctype System Identifier should be 'w3' not 'w3c'. |
| #20952 | Closed | Req | 0.6.3 | 2015-09-29 | add "getBodyContent()" method |