Support for "NAME"-attribute in META tag
Anders Myren (amy@xinit.se)
Thu, 6 Feb 1997 13:10:27 +0100 (MET)
Hi,
I have found it useful to have support for the NAME-attribute of the META
tag in HTML::HeadParser. The following modification was necessary for that
support:
% diff lib/HTML/HeadParser.pm-original lib/HTML/HeadParser.pm
165,167c165,172
< return unless exists $attr->{'http-equiv'};
< $self->{'header'}->push_header($attr->{'http-equiv'} =>
< $attr->{content})
---
> if (exists $attr->{'http-equiv'}) {
> $self->{'header'}->push_header($attr->{'http-equiv'} =>
> $attr->{content});
> }
> if (exists $attr->{'name'}) {
> $self->{'header'}->push_header($attr->{'name'} =>
> $attr->{content});
> }
If this is correct I think it would be a nice feature to have in the
official release.
Regards
Anders Myren