Doc #65794 [NEW]: wrong Return Values description
| From: | m dot gondar dot au at gmail dot com | Date: | Tue, 01 Oct 2013 03:26:38 +0000 |
| Subject: | Doc #65794 [NEW]: wrong Return Values description | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10338@lists.php.net to get a copy of this message | ||
From: m dot gondar dot au at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:wrong Return Values description
Description:
------------
---
From manual page:
http://www.php.net/tidy.body#refsect1-tidy.body-returnvalues
---
Return values description is inconsistant with main description.
"Return values" should be "Returns a tidyNode object starting from the
<body> tag
of the tidy parse tree." and not as currently "Returns the detected HTML
version."
Test script:
---------------
example provided on the same page can be used:
<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$body = $tidy->Body();
echo $body->value;
?>
Expected result:
----------------
"Return values" should be "Returns a tidyNode object starting from the
<body> tag
of the tidy parse tree."
Actual result:
--------------
"Return values" is "Returns the detected HTML version."
--
Edit bug report at https://bugs.php.net/bug.php?id=65794&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65794&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65794&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65794&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65794&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65794&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65794&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65794&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65794&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65794&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65794&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65794&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65794&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65794&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65794&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65794&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65794&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65794&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65794&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65794&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65794&r=mysqlcfg