Re: Can't get Function to run from Include file
Thomas 'PointedEars' Lahn <PointedEars@we b.de> writes:
[color=blue]
> Lasse Reichstein Nielsen wrote:[/color]
[color=blue][color=green]
>> I have yet to see a browser that honors the DOCTYPE declaration to the
>> point where they refuse features not in the chosen document type. They
>> might separate between HTML and XHTML, but that is it.[/color][/color]
[color=blue]
> Take Mozilla/5.0 and an XHTML DOCTYPE (or one of any other XML
> application). It does not even matter if XHTML it is served
> (correctly) as application/xhtml+xml.[/color]
How about this code then:
---
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Skeleton </title>
</head>
<body>
<p>a<font color="red">bcd </font>efg<br/>
<script type="text/javascript">
document.write( document.compat Mode);
document.write( " XML-version: " + document.xmlVer sion);
</script></p>
</body>
</html>
---
This is XHTML 1.0 *strict*, so the font tag is not legal. Mozilla
changes the color to red anyway, i.e., it doesn't ignore the tag even
though it is not defined in the version of XHTML that the document
contains. It is in standards mode ("CSS1Compat ").
[color=blue]
> You are right for HTML DOCTYPES, though, because both Mozilla/5.0
> and IE then switch to Quirks Mode.[/color]
Not necessarily. I always use HTML 4.01 Strict with and URL. It
triggers standards mode in Mozilla, IE and Opera.
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Thomas 'PointedEars' Lahn <PointedEars@we b.de> writes:
[color=blue]
> Lasse Reichstein Nielsen wrote:[/color]
[color=blue][color=green]
>> I have yet to see a browser that honors the DOCTYPE declaration to the
>> point where they refuse features not in the chosen document type. They
>> might separate between HTML and XHTML, but that is it.[/color][/color]
[color=blue]
> Take Mozilla/5.0 and an XHTML DOCTYPE (or one of any other XML
> application). It does not even matter if XHTML it is served
> (correctly) as application/xhtml+xml.[/color]
How about this code then:
---
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Skeleton </title>
</head>
<body>
<p>a<font color="red">bcd </font>efg<br/>
<script type="text/javascript">
document.write( document.compat Mode);
document.write( " XML-version: " + document.xmlVer sion);
</script></p>
</body>
</html>
---
This is XHTML 1.0 *strict*, so the font tag is not legal. Mozilla
changes the color to red anyway, i.e., it doesn't ignore the tag even
though it is not defined in the version of XHTML that the document
contains. It is in standards mode ("CSS1Compat ").
[color=blue]
> You are right for HTML DOCTYPES, though, because both Mozilla/5.0
> and IE then switch to Quirks Mode.[/color]
Not necessarily. I always use HTML 4.01 Strict with and URL. It
triggers standards mode in Mozilla, IE and Opera.
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Comment