Beat: IE(7) und application/xhtml+xml

Beitrag lesen

ich habe gerade auf meinem localhost die Ausgabe unserer Schulwebsite als "application/xhtml+xml" ausgeben lassen und musste feststellen, dass der IE7 die Homepage nicht anzeigt, sondern speichern will.

IE ist (nicht nur in dieser Beziehung) [gewollt(1)] defekt.

Ich kann allerdings nicht nachvollziehen, weshalb das von Gegnern zumeist als "Argument" gegen XHTML angeführt wird.

$ct = (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== false) ? "application/xhtml+xml" : "text/html";

header('Content-Type: '.$ct.'; charset=UTF-8);


>   
> und gut ist.  
  
<http://www.webdevout.net/articles/beware-of-xhtml#content_negotiation>  
<zitat>  
Safari and Konqueror, which support XHTML, also give text/html and application/xhtml+xml the same q value (in fact, like Internet Explorer, they also claim to support everything in existence equally well). But they don't mention application/xhtml+xml explicitly — it's implied by a wildcard. So if you use the above workaround, Safari and Konqueror will receive text/html even though they really do support application/xhtml+xml.  
</zitat>  
  
Mit anderen Worten, sofern dieser Zustand noch aktuell ist, lieferst du an Safari und Konqueror text/html aus.  
Möglicherweise sollte man aber den aktuellen Zustand überprüfen. Ich kenne ihn nicht.  
  
mfg Beat

-- 
Woran ich arbeite:  
[X-Torah](http://www.elcappuccino.ch/cgi/tok.pl?extern=1-pub-com3306-1)  
   <°)))o><                      ><o(((°>o  

0 71

Was sind die Vorteile für den Einsatz von XHTML

BeAT4
  • html
  1. 0
    suit
  2. 0
    Ole
    1. 2
      Struppi
      1. 0
        Gunnar Bittersmann
        1. 0
          Beat
          1. 2
            Harlequin
            1. 0
              suit
              1. 0
                Harlequin
        2. 0
          Swen
          1. 0
            Gunnar Bittersmann
  3. 1
    Christoph Jeschke
  4. 0

    IE(7) und application/xhtml+xml

    Felix Riesterer
    1. 0
      Christoph Jeschke
      1. 0
        Cybaer
    2. 0
      Kai345
      1. 0
        Beat
        1. 0
          Kai345
          1. 0
            Beat
            1. 0
              Kai345
              1. 0
                Beat
                1. 0
                  suit
                  1. 0
                    Beat
                    1. 0
                      suit
                      1. 0
                        Kai345
                        1. 0
                          molily
      2. 0
        Cybaer
    3. 0
      Cybaer
  5. 0
    Beat
    1. 0
      Felix Riesterer
      1. 0
        Beat
        1. 0
          Auge
          1. 0
            Felix Riesterer
            1. 0
              Harlequin
        2. 0
          molily
          1. 0
            molily
            1. 0
              Gunnar Bittersmann
              1. 0
                Kai345
                • menschelei
                1. 0
                  molily
          2. 0
            Beat
            1. 0
              molily
      2. 0
        Cybaer
        1. 0
          Gunnar Bittersmann
          1. 0
            Cybaer
            1. 0
              Gunnar Bittersmann
              1. 0
                Cybaer
        2. 0
          molily
          1. 0
            Cybaer
            1. 0
              molily
              1. 0
                Cybaer
                1. 0
                  Cybaer
        3. 0
          Felix Riesterer
          1. 0
            Cybaer
            1. 0
              molily
              1. 0
                Cybaer
                1. 2
                  molily
                  1. 0
                    Gunnar Bittersmann
                  2. 0
                    Cybaer
      3. 0
        molily
        1. 0
          Cybaer
        2. 0
          Beat
          1. 0
            Cybaer
            1. 0
              Timo
          2. 0
            Gunnar Bittersmann
            1. 0
              molily
              1. 0
                Gunnar Bittersmann
          3. 2
            molily
    2. 0
      cygnus
    3. 0
      molily
  6. 0
    Gunnar Bittersmann
  7. 0
    BeAT4