This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH for Re: Your main web page / valid XHTML 1.0


On Wed, 3 Apr 2002, Erik Schnetter wrote:
> The button at the bottom of your main web page http://gcc.gnu.org/ claims
> that this page is valid XHTML 1.0.  When I follow that button, the page is
> checked for valid HTML 4.0 instead.

Well spotted, thanks!

> This is because the page itself claims to be HTML 4.0, not XHTML 1.0.
> Furthermore, the validator says that the page is not valid HTML 4.0;
> when I checked, there were three errors:

All this is because we are in the process of concerting all pages to
XHTML. That logo shouldn't have appeared, but apparently I forgot to
disable it again after testing.

According to http://studenti.fisica.unifi.it/~fwyzard/validgcc.html
nearly all of our pages (except some Java pages) are already valid
XHTML 1.0, so instead of disabling the logo as I had originally planned,
let's make the step forward and switch the DOCTYPE.

To that end, I have installed the patch below. The main page on
http://gcc.gnu.org will be updated immediately, all others and
http://www.gnu.org/software/gcc will automatically within the next
24 hours.

Gerald

Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.22
diff -u -3 -p -r1.22 style.mhtml
--- style.mhtml	2002/04/02 16:52:16	1.22
+++ style.mhtml	2002/04/03 15:59:06
@@ -1,4 +1,7 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE html
+          PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+          "DTD/xhtml1-transitional.dtd">

 ;;; Given a dirname PATH, set BACKPATH to a relative URL pointing from PATH
 ;;; back to the original directory.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]