Hallo Julian.
wenn ich meine Dokumente also mit <?php header("Content-Type: application/xhtml+xml\r\n"); ?> beginnen lasse hat sich das Problem erledigt? Gibt es Browser, die damit Schwierigkeiten haben?
Ja: der IE. Deshalb sollte man wohl besser dies hier nutzen:
if (isset($_SERVER['HTTP_ACCEPT']) and stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml')) {
header('content-type: application/xhtml+xml; charset=utf-8');
} else {
header('content-type: text/html; charset=utf-8');
}
Da der IE standardmäßig „*/*“ als Wert für HTTP_ACCEPT sendet, wird er hiermit als Lügner entlarvt und bekommt, was er versteht.
Einen schönen Samstag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]