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

Bug #16354 Does not parse multiple simple At-rules properly
Submitted: 2009-06-21 16:59 UTC
From: torerikh Assigned: farell
Status: Closed Package: HTML_CSS (version 1.5.3)
PHP Version: 5.2.4 OS: Ubuntu
Roadmaps: 1.5.4    
Subscription  


 [2009-06-21 16:59 UTC] torerikh (Tor-Erik Hagen)
Description: ------------ If you have several simple at rules in the css, it only keeps the last rule of each type. It should keep all of them as you can have for instance multiple imports. Test script: --------------- $a = new HTML_CSS(null, null); $a->parseString(" @import \"foo.css\"; @import \"bar.css\"; "); print_r($a->_css); Expected result: ---------------- I'd expect that both imports where represented in the _css array in some form. Actual result: -------------- Only the last import is keept.

Comments

 [2009-06-21 23:55 UTC] farell (Laurent Laville)
-Status: Open +Status: Verified
 [2009-07-03 02:41 UTC] farell (Laurent Laville)
-Status: Verified +Status: Closed -Assigned To: +Assigned To: farell
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.