W3C home > Mailing lists > Public > www-validator@w3.org > August 2000

Re: HTML code after validation

From: Karl Dubost <kd@w3.org>
Date: Wed, 2 Aug 2000 10:13:57 +0200 (MET DST)
cc: www-validator@w3.org, Gerald Oskoboiny <gerald@w3.org>
Message-ID: <Pine.GSO.4.21.0008021012340.25067-100000@www49.inria.fr>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:54 GMT