[collectd] Patch for making collection.cgi xhtml10 compliant.

Muralito muralito at montevideo.com.uy
Mon Oct 2 21:12:35 CEST 2006


Hi.

Attached is a patch for making collection.cgi xhtml10 compliant.

Regards,
Muralito.
-------------- next part --------------
--- /usr/share/doc/packages/collectd/contrib/collection.cgi	2006-07-19 13:58:41.000000000 -0300
+++ /srv/www/cgi-bin/collection.cgi	2006-09-28 15:33:13.000000000 -0300
@@ -1385,7 +1385,9 @@
 Content-Type: text/html
 Cache-Control: no-cache
 
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 	<head>
 		<title>Collection: $RelDir</title>
 		<style type="text/css">
@@ -1472,8 +1474,8 @@
 
 			if (ref ($GraphMulti->{$type}) eq 'CODE')
 			{
-				print qq(\t\t<a href="$MySelf$RelDir/$type" />),
-				qq(<img src="$MySelf$RelDir/$type/day" /></a>\n);
+				print qq(\t\t<a href="$MySelf$RelDir/$type" >),
+				qq(<img alt="$type-day" src="$MySelf$RelDir/$type/day" /></a>\n);
 				next;
 			}
 
@@ -1483,13 +1485,13 @@
 
 				if (length ($inst))
 				{
-					print qq(\t\t<a href="$MySelf$RelDir/$type/$inst" />),
-					qq(<img src="$MySelf$RelDir/$type/$inst/day" /></a>\n);
+					print qq(\t\t<a href="$MySelf$RelDir/$type/$inst" >),
+					qq(<img alt="$type-$inst-day" src="$MySelf$RelDir/$type/$inst/day" /></a>\n);
 				}
 				else
 				{
-					print qq(\t\t<a href="$MySelf$RelDir/$type" />),
-					qq(<img src="$MySelf$RelDir/$type/day" /></a>\n);
+					print qq(\t\t<a href="$MySelf$RelDir/$type" >),
+					qq(<img alt="$type-day" src="$MySelf$RelDir/$type/day" /></a>\n);
 				}
 			}
 		}


More information about the collectd mailing list