[thelist] <base> and DOCTYPE

Ashok Hariharan listman at hazard0us.org
Fri Nov 15 07:03:01 CST 2002


I am having a strange problem :

<!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>
<base href="http://server/base/" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/screen.css" type="text/css" />
<title>home</title>
</head>

the above works fine in explorer and opera but mozilla (1.0) fails to
recognise the style sheet.

<base href="http://server/base/" />
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/screen.css" type="text/css" />
<title>home</title>
</head>

when i move the <base> tage before the doctype it works in mozilla, but
unfortunately doesnt validate.

when i remove the <base> altogether and change the <link> stylesheet to an
absolute path (/root/base/....) ,
moz again doesnt pickup the style sheet !

Any ideas ?










More information about the thelist mailing list