[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Standards and Quirks Modes



The Debian Web pages all use the document type declaration '<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,' which, while not
invalid, is considered bad form and fails to trigger standards
compliance mode in Internet Explorer and Mozilla (Gecko, really)
derivatives. I have attached a patch that modifies the DOCTYPE to
include the actual DTD location.

For more information regarding DTD switching and quirks mode, see the
articles "Fix Your Site with the Right DOCTYPE!"
<URI:http://www.alistapart.com/articles/doctype/> and "Mozilla's Quirks
Mode" <URI:http://www.mozilla.org/docs/web-developer/quirks/>.
? polish/News/weekly/2003/10
Index: english/template/debian/header.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/header.wml,v
retrieving revision 1.7
diff -u -r1.7 header.wml
--- english/template/debian/header.wml	7 Nov 2003 16:04:14 -0000	1.7
+++ english/template/debian/header.wml	13 Nov 2003 23:37:31 -0000
@@ -2,7 +2,7 @@
 
 <ifeq "$(DOCTYPE)" xhtml
    "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://ww w.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
-   "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
+   "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\";>"
 />
 # not using [AR: dir="RTL":] because apparently the whole page was flipped
 # and this wasn't desirable for them

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: