Re: bug report in HTML::Parse.pm
Gisle Aas (aas@oslonett.no)
Tue, 26 Sep 1995 11:48:46 +0100
> The Parse.pm has special provision to deal with the :
>
> <!DOCTYPE........>
>
> but seems it croaks if it's lower case "<!doctype>". In the subroutine
> parse_html, somewhere it says:
>
> # Process all complete tokens
> for (@x) {
> if (m:^</\s*(\w+)\s*>$:) {
> endtag($html, lc $1);
> } elsif (m/^<\s*\w+/) {
> starttag($html, $_);
> } elsif (m/^<!\s*DOCTYPE\b/) {
> # just ignore it
> } else {
> text($html, $_);
> }
>
> Maybe that should be "(.....DOCTYPE\b/i)" ?
Sure, thanks!!
--Gisle