hdp/CSS-Selector-Parser — Issue #1: multiple class selectors
Author: yko
Created: 2011-11-01 22:14:25+00:00
State: open

According to [CSS2 Spec](http://www.w3.org/TR/CSS2/selector.html#class-html), CSS selector may contain multiple class values preceded by a "."

At the moment CSS::Selector::Parser respects only last class value.
This can be reproduced by oneliner:

perl -MCSS::Selector::Parser -MData::Dumper -E 'say Dumper CSS::Selector::Parser::parse_selector "p.first.second.third"'

Possible fixes are:

1. append each new class name, preceded by a ".". Class value for example above will looks 'first.second.third'
2. represent 'class' value as an arrayref

First solution is preferable because it shouldn't break any existing code and user can get all selectors in array using `split /\./`
I could implement this in code if one of suggestion are acceptable for you.