CSS-SAC

 view release on metacpan or  search on metacpan

SAC.pm  view on Meta::CPAN

        # html end comment
        elsif ($css =~ s/^\s*-->\s*//) {
            # we don't do anything with those presently
            warn "[SAC] removing HTML comments\n" if DEBUG;
        }

        # we have selectors
        elsif (my $sel_list = $sac->parse_selector_list(\$css)) {
            warn "[SAC] parsed selectors\n" if DEBUG;
            next unless @$sel_list;
            # callbacks
            $sac->[_dh_]->start_selector($sel_list) if $sac->[_dh_can_]->{start_selector};

            # parse the rule
            my $rule;
            warn "[SAC] parsing rule\n" if DEBUG;

            ### BUG
            # The Text::Balanced extractions below are not correct since they don't take
            # comments into account. With the first one, it'll fail on apostrophes in
            # comments, with the latter, on unbalanced apos and } in comments and

SAC.pm  view on Meta::CPAN


 - DocumentHandler and ErrorHandler
    the handler classes used as sinks for the event stream received
    from a SAC Driver. See CSS::SAC::{Document,Error}Factory for more
    details on the interfaces those classes must expose.

Methods will be called on whatever it is you pass as values to those
options. Thus, you may pass in objects as well as class names (I
haven't tested this yet, there may be a problem).

NOTE: an error handler should implement all callbacks, while a document
handler may only implement those it is interested in. There is a default
error handler (which dies and warns depending on the type of error) but
not default document handler.

=item * $sac->ParserVerion or $sac->getParserVerion

Returns the supported CSS version.

Requesting this parser's ParserVersion will return the string 'CSS3'.
While that is (modulo potential bugs of course) believed to be



( run in 1.334 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )