PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Page » Bug #1100

bug in example

Details

Submitted2004-03-30 22:46 UTC
Fromjsnell at networkninja dot com
Assignedthesaur
StatusClosed
PackageHTML_Page
PHP Version4.3.3
OSLinux
Roadmaps(Not assigned)

Comments

[2004-03-30 22:46 UTC] jsnell at networkninja dot com

Description:
------------
The Page_Complex example is generating invalid style syntax because this code:

$table->setCellAttributes($i, $j, 'style="background-color:'.sprintf('%02X%02X%02X', $R, $G, $B).';"');

should be:

$table->setCellAttributes($i, $j, 'style="background-color:#'.sprintf('%02X%02X%02X', $R, $G, $B).';"');

(notice the #)

Reproduce code:
---------------
Page_Complex.php example from 1.6

Expected result:
----------------
to show colors in both browsers

Actual result:
--------------
color backgrounds only show in IE

[2004-03-31 08:29 UTC] thesaur at php dot net

This has been fixed in CVS (Revision 1.8). It will be included in the next release.

Thanks for bringing this to my attention.