Home » HTML » HTML_Table » Bug #2335
Unnecessary case sensitivity in HTML_Table::addRow()
Details
| Request #2335 | Unnecessary case sensitivity in HTML_Table::addRow() |
|---|---|
| Submitted | 2004-09-15 10:38 UTC |
| From | netbur at vakoveverky dot net |
| Status | Closed |
| Package | HTML_Table |
| PHP Version | 4.3.8 |
| OS | Fedora Core 1 |
| Roadmaps | (Not assigned) |
Comments
[2004-09-15 10:38 UTC] netbur at vakoveverky dot net
Description:
------------
When supplying arguments to HTML_Table::addRow(), the third arguments, $type, is case sensitive, which means you can't enter 'td' or 'th' as recognized values. However, these (lowercase) values are both mentioned in the package manual in the function description.
Reproduce code:
---------------
<?php
$tab = new HTML_Table ();
$a = array ( 'AAA', 'BBB' );
$tab->addRow ( $a, null, 'th' );
?>
Expected result:
----------------
The above code should add a row to the table, with the values 'AAA' in the first column and 'BBB' in the second column, both inside <th> tags.
Actual result:
--------------
A row of default cell values is added, inside <td> tags.