Bug #54208 [NEW]: PhD_PEAR: no attributes for table-related tags

From: Date: Wed, 09 Mar 2011 18:07:45 +0000
Subject: Bug #54208 [NEW]: PhD_PEAR: no attributes for table-related tags
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6059@lists.php.net to get a copy of this message
From:             
Operating system: Irrelevant
PHP version:      Irrelevant
Package:          Doc Build problem
Bug Type:         Bug
Bug description:PhD_PEAR: no attributes for table-related tags

Description:
------------
For some strange reason phpdotnet\phd\Package_PEAR_XHTML overrides methods
for formatting table tags defined in phpdotnet\phd\Package_Generic_XHTML,
for example:

    public function format_entry($open, $name, $attrs, $props)
    {
        if ($open) {
            if ($props['empty']) {
                return '<td></td>';
            }
            return '<td>';
        }
        return '</td>';
    }

Unlike code in parent class, this does not add any attributes whatsoever,
so it is impossible to even do colspan and rowspan in PEAR manual.

Commenting out format_table(), format_entry() and format_th_entry()
improves output a lot.

Test script:
---------------
<entry morerows="1">...</entry>

Expected result:
----------------
<td rowspan="2">...</td>

Actual result:
--------------
<td>...</td>

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54208&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=54208&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=54208&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=54208&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=54208&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54208&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=54208&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=54208&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=54208&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=54208&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=54208&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=54208&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=54208&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=54208&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=54208&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54208&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54208&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=54208&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=54208&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=54208&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=54208&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=54208&r=mysqlcfg



Thread (3 messages)

« previous php.doc.bugs (#6059) next »