Don't extract strings in hidden values
This commit is contained in:
parent
58951e551f
commit
2f928c4e75
|
|
@ -207,8 +207,9 @@ sub text_extract (*) {
|
|||
for my $a ('alt', 'content', 'title', 'value') {
|
||||
if ($attr->{$a}) {
|
||||
next if $a eq 'content' && $tag ne 'meta';
|
||||
next if $a eq 'value' && $tag ne 'input';
|
||||
my($key, $val, $val_orig, $order) = @{$attr->{$a}};
|
||||
next if $a eq 'value' && ($tag ne 'input'
|
||||
|| (ref $attr->{'type'} && $attr->{'type'}->[1] eq 'hidden'));
|
||||
my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
|
||||
$val =~ s/\s+$//s;
|
||||
$text{$val} = 1 if $val =~ /\S/s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue