Re: HTML code after validation

On Tue, 1 Aug 2000, Rob Kaper wrote:

>The HTML code for the image that is shown when a page validates correctly on
>http://validator.w3.org/ is not compliant with HTML 4.01 Strict. Kind of odd
>to validate a document, add the image and then see an error!

A modification for the code: (lines 630-685)

    if ( $version ne "unknown" ) {
	if ( $version =~ /^HTML 2\.0$/ ) {
	    $gifname = "vh20";
	    $alttext = "Valid HTML 2.0!";
            $gifborder = "";
	}
	elsif ( $version =~ /HTML 3\.2</ ) {
	    $gifname = "vh32";
	    $alttext = "Valid HTML 3.2!";
            $gifhw   = ' height="31" width="88"';
	}
	elsif ( $version =~ /HTML 4\.0<\/a> Strict$/ ) {
	    $gifname = "vh40";
	    $alttext = "Valid HTML 4.0!";
            $gifborder = "";
            $gifhw   = ' height="31" width="88"';
	}
	elsif ( $version =~ /HTML 4\.0<\/a> / ) {
	    $gifname = "vh40";
	    $alttext = "Valid HTML 4.0!";
            $gifhw   = ' height="31" width="88"';
	}
	elsif ( $version =~ /HTML 4\.01<\/a> Strict$/ ) {
	    $gifname = "vh401";
	    $alttext = "Valid HTML 4.01!";
            $gifborder = "";
            $gifhw   = ' height="31" width="88"';
	}
	elsif ( $version =~ /HTML 4\.01<\/a> / ) {
	    $gifname = "vh401";
	    $alttext = "Valid HTML 4.01!";
            $gifhw   = ' height="31" width="88"';
	}
	elsif ( $version =~ /XHTML 1\.0<\/a> / ) {
	    $gifname = "vxhtml10";
	    $alttext = "Valid XHTML 1.0!";
            $gifborder = "";
            $gifhw   = ' height="31" width="88"';
	    $xhtmlendtag = " /";
	}
	elsif ( $version =~ /HTML 3\.0/ ) {
	    $gifname = "vh30";
	    $alttext = "Valid HTML 3.0!";
	}
	elsif ( $version =~ /Netscape/ ) {
	    $gifname = "vhns";
	    $alttext = "Valid Netscape-HTML!";
	}
	elsif ( $version =~ /Hotjava/ ) {
	    $gifname = "vhhj";
	    $alttext = "Valid Hotjava-HTML!";
	}
	if ( defined $gifname ) {
	    $nicegifname = $gifname;
	    $nicegifname =~ s/</\&lt;/g; $nicegifname =~ s/&/\&amp;/g;
	    print <<"EOHD";


-- 
Karl Dubost / W3C - Conformance Manager
          http://www.w3.org/

     --- Be Strict To Be Cool! ---

Received on Wednesday, 2 August 2000 04:14:04 UTC