Nice job zentara, here is a monkey patch
BEGIN { package HTML::TagParser::Element; sub AUTOLOAD { my ($name) = our $AUTOLOAD =~ /::(\w+)$/; my $method = sub { my $self = shift; return $self->subTree->$name( @_ ); }; no strict 'refs'; * { $AUTOLOAD } = $method; goto &$method; } }
Now calling getElementsByClassName on a HTML::TagParser::Element works :)
In reply to Re^2: Can't locate object method "getElementsByClassName" via package "HTML::TagParser::Element" ( getElementsByClassName and others for HTML::TagParser::Element )
by Anonymous Monk
in thread Can't locate object method "getElementsByClassName" via package "HTML::TagParser::Element"
by Vonunov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |