bug report in HTML::Parse.pm

K.S. Chu (kschu@rhine.ece.utexas.edu)
Tue, 26 Sep 1995 01:20:02 -0500 (CDT)


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)" ?

Phillip