Home » HTML » HTML_Common
PEAR::HTML_Common is a base class for other HTML classes.
This package is unmaintained.
Download latest release 1.2.5 (there might be newer Composer installable version)
License: PHP License
Description
The PEAR::HTML_Common package provides methods for html code display and attributes handling.
* Methods to set, remove, update html attributes.
* Handles comments in HTML code.
* Handles layout, tabs, line endings for nicer HTML code.
Maintainers
- Klaus Guenther (thesaur) — lead, inactive
- Alexey Borzov (avb) — lead, active
- Bertrand Mansion (mansion) — lead, active
- Adam Daniel (adaniel) — lead, inactive
Dependencies
Required
- PHP (>= 4.0.4)
- PEAR Installer (>= 1.4.3)
Releases
- 1.2.5 (stable, 2009-04-03)
Release notes
License: PHP License
Whitespace is no longer trimmed from quoted attribute values in
_parseAttribute() method (bug #15787) - 1.2.4 (stable, 2007-05-16)
Release notes
License: PHP License
Migrate to package.xml version 2.0, use proper header comment block.
No code changes since previous release. - 1.2.3 (stable, 2006-10-08)
Release notes
License: PHP License
* Added setAttribute() method (backport from HTML_Common2)
* Added possibility to set the charset parameter for htmlspecialchars()
via static HTML_Common::charset() method (see bug #2410)
* Properly document getAttribute() method (bug #5704), fix PHPDoc comments
for several other methods - 1.2.2 (stable, 2005-09-06)
- 1.2.1 (stable, 2003-06-19)
Release notes
License: PHP License
* Method getAttributes() can now return the attributes in a string (Alexey Borzov)
- 1.2 (stable, 2003-05-20)
Release notes
License: PHP License
Applied patch by Klaus Guenther:
* setTab(): Allows the indent string (default: \t) to be set
* setLineEnd(): Allows the line end string (default: \n) to be set
* Allows the indent and line ending settings to be propagated to content objects - 1.1 (stable, 2003-04-16)
Release notes
License: PHP License
This new release optimizes HTML_Common's way to deal with attributes.
* Fix a bug in _parseAttributes when a string was passed to it (Alexey Borzov)
* Only key-value associative arrays are now used, XHTML compliant (Alexey Borzov)
* Fix a bug related to getAttribute case sensitivity detected by Ian Harder #22628 (Alexey Borzov) - 1.0 (stable, 2002-05-28)
Release notes
License: PHP License
First release.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #680 | Bogus | Bug | 2004-02-04 | _getAttrString always return htmlencoded attributes | |
| #2410 | Closed | Req | 2004-09-28 | turn htmlspcialchars on/off | |
| #3948 | Closed | Bug | 2005-03-24 | case 'mac'; <-- semicolon | |
| #3953 | Closed | Bug | 2005-03-24 | HTML_Common::_updateAttrArray() does not return array | |
| #4031 | Bogus | Bug | 2005-04-02 | wrong attributes parser (keys are lowercased) | |
| #5704 | Closed | Req | 2005-10-17 | Docblock for getAttribute() | |
| #6221 | Bogus | Bug | 2005-12-11 | HTML_Common::updateAttributes | |
| #10695 | Bogus | Bug | 1.2.3 | 2007-04-12 | htmlspecialchars expects a string in _getAttrString(), radio sends $value=1 int |
| #14471 | No Feedback | Req | 2008-08-07 | Can we have case sensitive attribute keys? | |
| #15787 | Closed | Bug | 1.2.4 | 2009-01-27 | _parseAttributes with strings trimmed blank of attribute values |
| #23779 | Open | Req | 1.2.5 | 2018-11-29 | Please tag release v1.2.5 on Packagist |