The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojo::DOM::CSS - CSS3 Selector Engine

SYNOPSIS

  use Mojo::DOM::CSS;

DESCRIPTION

Mojo::DOM::CSS is the CSS3 selector engine used by Mojo::DOM. Note that this module is EXPERIMENTAL and might change without warning!

ATTRIBUTES

Mojo::DOM::CSS implements the following attributes.

tree

  my $tree = $css->tree;
  $css     = $css->tree(['root', ['text', 'lalala']]);

Document Object Model.

METHODS

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.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.