Home » HTML » HTML_Page » Bug #1100
bug in example
Details
| Submitted | 2004-03-30 22:46 UTC |
|---|---|
| From | jsnell at networkninja dot com |
| Assigned | thesaur |
| Status | Closed |
| Package | HTML_Page |
| PHP Version | 4.3.3 |
| OS | Linux |
| 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.