I would recommend using a class attribute or custom attribute. I often use klass myself.
Well, we can use id and class tags to find and rewrite parts of HTML. But in fact, we can do anything the HTML::Element look_down method can do to find elements.
They are tree processing methods. Seamstress is an open-ended API for OO tree processing. Here are good places to search for methods:
HTML::TreeBuilder
HTML::Element
HTML::Element::Library
HTML::Element::Replacer
It inherits from HTML::TreeBuilder and HTML::Element and it uses HTML::Element::Library. It probably should use HTML::Element::Replacer as well!
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
To install HTML::Seamstress, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Seamstress
CPAN shell
perl -MCPAN -e shell install HTML::Seamstress
For more information on module installation, please visit the detailed CPAN module installation guide.