Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0RC2

Bug #698 addStyleDeclaration() always overwrite current style.
Submitted: 2004-02-06 12:21 UTC
From: dostick at ctco dot lv Assigned: thesaur
Status: Wont fix Package: HTML_Page
PHP Version: 4.3.4 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 30 - 18 = ?

 
 [2004-02-06 12:21 UTC] dostick at ctco dot lv
Description: ------------ addStyleDeclaration() always overwrite current style. so if you're using addStyleDeclaration() more than once in script it will use the value passed in last call. This is VERY inconvenient and annoying. Other PEAR HTML_Page methods accumulate passed data: e.g. addBodyContent() adds content to the internal buffer and of course does not override it.

Comments

 [2004-02-06 12:34 UTC] thesaur at php dot net
addScriptDeclaration() acts the same way. The side-effect of creating an array is that as it now stands, it would create a new <script> or <style> section for each addition. That's not very pretty. However, I will attempt to group by type and then implode the content before wrapping it with the html elements. I will get to that hopefully this coming week.
 [2004-06-07 21:39 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-11 22:08 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-10-14 16:57 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!