Home » HTML » HTML_Page » Bug #125
Stylesheet Type Problem
Details
| Submitted | 2003-10-20 09:11 UTC |
|---|---|
| From | pascalthuet at altern dot org |
| Assigned | thesaur |
| Status | Closed |
| Package | HTML_Page |
| PHP Version | Irrelevant |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2003-10-20 09:11 UTC] pascalthuet at altern dot org
Description:
------------
By adding a linked Stylsheet with the methode addStyleSheet(), the class did not output the type correclty
At line 447 of Page.php
$strHtml .= $tab . "<link rel=\"stylesheet\" href=\"$strSrc\" type=\"".$strAttr['type'].'"';
the key 'type' does not exist.
The correct key should be
$strAttr['media'].'
Reproduce code:
---------------
page->addStyleSheet('test.css');
Expected result:
----------------
page->addStyleSheet('test.css');
should output :
<link rel="stylesheet" href="test.css" type="text/css">
Actual result:
--------------
page->addStyleSheet('test.css');
will output :
<link rel="stylesheet" href="test.css" type="">
[2003-10-20 22:27 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.
I'll be rolling an RC soon, as it seems that this package has been performing without major problems for some time (minus typos).