Home » HTML » HTML_Page » Bug #800
Output "Object" when doctype is unknown
Details
| Submitted | 2004-02-19 16:34 UTC |
|---|---|
| From | dostick at ctco dot lv |
| Assigned | thesaur |
| Status | Closed |
| Package | HTML_Page |
| PHP Version | 4.3.4 |
| OS | UNIX |
| Roadmaps | (Not assigned) |
Comments
[2004-02-19 16:34 UTC] dostick at ctco dot lv
Description:
------------
When specified Doctype is not in HTML/Doctypes.php
PEAR Page output string "Object" before the page output.
At least it could be silent and omit doctype?
Reproduce code:
---------------
require_once ('HTML/Page.php');
$p=new HTML_Page;
$p->setDoctype("HTML 1.0 Strict");
$p->addBodyContent("Hello");
$p->display();
Expected result:
----------------
Hello
Actual result:
--------------
Object Hello
[2004-02-19 16:42 UTC] dostick at ctco dot lv
Please add support for "HTML 4.0 Transitional"
[2004-02-25 15:06 UTC] thesaur at php dot net
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
Now if an unknown doctype is passed, a notice is raised but the content is properly output without any doctype.
HTML 4.0 has also been added