PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_CSS » Bug #998

parseString incorrectly reads attribute values with colons in

Details

Submitted2004-03-12 06:38 UTC
Frommatt at sensibleerection dot com
Assignedthesaur
StatusClosed
PackageHTML_CSS
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-03-12 06:38 UTC] matt at sensibleerection dot com

Description:
------------
When parsing in some CSS like:

.sec { display: none; }
.month:before { content: "-"; }
.year:before { content: "-"; }
.min:before { content: ":"; }
.sec:before { content: ":"; }

the resulting array snippit will be:

[.sec] => Array ( [display] => none )
[.month:before] => Array ( [content] => "-" )
[.year:before] => Array ( [content] => "-" )
[.min:before] => Array ( [content] => " )
[.sec:before] => Array ( [content] => " )

CSS.php lines 481 and 494 (in 0.3.1) use an explode on ":", which excludes attribute values from being able to include colons.

[2004-03-24 22:08 UTC] thesaur at php dot net

I have fixed this in CVS. It will be included in the next release.

Thank you for alerting us to this issue! If the patch does not resolve it, please let us know.