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

Bug #18543 CSS Tokenizer deletes too many #
Submitted: 2011-05-16 12:23 UTC
From: gennadiylitvinyuk Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.0)
PHP Version: 5.2.12 OS: All
Roadmaps: (Not assigned)    
Subscription  


 [2011-05-16 12:23 UTC] gennadiylitvinyuk (Gennadiy Litvinyuk)
Description: ------------ I've just created a sniff that should validate CSS Colors, and found that CSS tokenizer has problems parsing CSS colors. I want to proof that there are no color definitions with duplicated # character, for example {color: ##0305F3} Unfortunately PHP_Codesniffer removes all '#' at the beginning of a color definition in a CSS.php in the line 76: $content = ltrim($token['content'], '#/');

Comments

 [2011-05-18 09:02 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in SVN. 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.