PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Table » Bug #2335

Unnecessary case sensitivity in HTML_Table::addRow()

Details

Request #2335Unnecessary case sensitivity in HTML_Table::addRow()
Submitted2004-09-15 10:38 UTC
Fromnetbur at vakoveverky dot net
StatusClosed
PackageHTML_Table
PHP Version4.3.8
OSFedora 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.