HTML::TokeParser::Simple 3.0 is on its way the CPAN.
- 'get_foo' methods replace the older 'return_foo' methods.
- 'return_foo' methods now call the new 'get_foo' methods and are deprecated (though they do not yet issue warnings.)
- The constructor has been overloaded to allow users to explicitly state the source type of the HTML, if necessary. Also, if LWP::Simple is installed, the HTML may now be fetched from a URL. (e.g., HTML::TokeParser::Simple->new(url => $url)
- $token->set_attr($token->return_attr) now works.
- Added is_pi(), shorthand for is_process_instruction().
- Broke out HTML::TokeParser::Simple::Token into its own file. I may eventually refactor this into separate classes.
There were other changes I was going to make, but I wanted to keep the changes to the new version at a minimum until I find out if there are any problems.