Subject: | Wrong parse |
HTML:
<iframe/**/src="http://mail.ru" name="poc iframe jacking" width="100%"
height="100%" scrolling="auto" frameborder="no"></iframe>
$parser = HTML::Parser->new(
api_version => 3,
start_h => [ sub{
my ($Self, $Text, $Tag, $Attr) = @_;
print "Tag is: ".$Tag;
}, "self, text, tagname, attr" ]
);
$parser->ignore_elements( qw( iframe ));
$parser->ignore_tags( qw( iframe ));
output:
Tag is: iframe/**/src="http://mail.ru"