Mojo::DOM::CSS - CSS3 Selector Engine
use Mojo::DOM::CSS;
Mojo::DOM::CSS is the CSS3 selector engine used by Mojo::DOM. Note that this module is EXPERIMENTAL and might change without warning!
Mojo::DOM::CSS implements the following attributes.
tree
my $tree = $css->tree; $css = $css->tree(['root', ['text', 'lalala']]);
Document Object Model.
Mojo::DOM::CSS inherits all methods from Mojo::Base and implements the following new ones.
select
my $results = $css->select('head > title');
Run CSS3 selector against tree.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.