PATCH: style.html -- full HTML 4.01 compliance

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Tue Oct 29 11:19:00 GMT 2002


With the change below, our MetaHTML styles which are applied to most
web pages apart from /onlinedocs should fully support HTML 4.01 where
needed (currently /install).

http://gcc.gnu.org/install/finalinstall.html now actually verifies,
probably for the first time ever. :-)

Gerald


CVS log:
  Redefine <head> to be HTML and XHTML compliant, depending on the context.
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.31
diff -u -3 -p -r1.31 style.mhtml
--- style.mhtml	29 Oct 2002 12:34:12 -0000	1.31
+++ style.mhtml	29 Oct 2002 19:04:15 -0000
@@ -51,16 +51,25 @@
 ;;; Redefine the <head> tag so that we can add default <meta /> headers.

 <define-container head>
-<verbatim>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rev="made" href="mailto:gcc@gcc.gnu.org" />
-<link rel="shortcut icon" href="http://gcc.gnu.org/favicon.ico" />
-</verbatim>
-%body
-<verbatim>
-</head>
-</verbatim>
+ <verbatim>
+  <head>
+ </verbatim>
+ <if <var-exists XHTML>
+  <group
+   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+    <link rev="made" href="mailto:gcc@gcc.gnu.org" />
+    <link rel="shortcut icon" href="http://gcc.gnu.org/favicon.ico" />
+  >
+  <group
+   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+    <link rev="made" href="mailto:gcc@gcc.gnu.org">
+    <link rel="shortcut icon" href="http://gcc.gnu.org/favicon.ico">
+  >
+ >
+ %body
+ <verbatim>
+  </head>
+ </verbatim>
 </define-container>

 ;;; Redefine the <title> tag to comply with the GNU style.



More information about the Gcc-patches mailing list