Timo "God's Boss" Reitz: CSS XHTML alles kaputt, könnte heuln

Beitrag lesen

Was spricht dagegen, die Seiten für Browser, die application/xhtml+xml verstehen, auch als solche auszuliefern?
Mit welcher glorreichen Methode realisierst du das?

Das geht theoretisch mit jeder Methode, die Request-Header lesen kann und (die Informationen daraus zugrunde legend) die Response-Header manipulieren kann. Kommt im Accept-Header application/xhtml+xml vor, so kann man auch application/xhtml+xml ausliefern, sonst wird text/html gesendet.
Beim Apache beispielsweise im .htaccess-Kontext so (ungetestet):

<FilesMatch "\.html$">  
SetEnvIf Accept "application/xhtml\+xml" xhtml=true  
Header set Content-Type "application/xhtml+xml" env=xhtml  
</FilesMatch>
--
Reden ist Silber, Schweigen ist Gold, meine Ausführungen sind Platin.
Self-Code: sh:( ch:? rl:( br:> n4:( ie:{ mo:) va:) de:> zu:} fl:| ss:| ls:~ js:|
0 55

CSS XHTML alles kaputt, könnte heuln

Peterchen
  • css
  1. 0
    Beat
    1. 1
      molily
      1. 0
        Peterchen
        1. 0
          Gino
        2. 0
          EKKi
      2. 0
        Thorsten Schleppi
    2. 0
      Gino
      1. 0
        suit
        1. 0
          Beat
          1. 0
            molily
            1. 0
              suit
              1. 0
                molily
                1. 0
                  suit
                  1. 0
                    molily
                    1. 0
                      suit
                      1. 0
                        molily
                        1. 0
                          suit
        2. 0
          Timo "God's Boss" Reitz
          • html
          1. 0
            suit
            1. 0
              molily
              1. 0
                suit
                1. 0
                  molily
                  1. 0
                    suit
          2. 0
            Beat
            1. 0
              suit
              1. 0
                molily
                1. 0
                  suit
                  1. 0
                    Timo "God's Boss" Reitz
            2. 0
              Timo "God's Boss" Reitz
              • webserver
              1. 0
                Beat
                1. 0
                  Timo "God's Boss" Reitz
                  • sonstiges
                  1. 0
                    Beat
                    1. 0
                      Timo "God's Boss" Reitz
                      1. 0
                        molily
                        1. 0
                          suit
                          • meinung
                          1. 0
                            Timo "God's Boss" Reitz
                            • browser
                        2. 0
                          Timo "God's Boss" Reitz
                          1. 0
                            molily
        3. 0
          Gunnar Bittersmann
          1. 0
            suit
            1. 0
              molily
            2. 0
              Gunnar Bittersmann
              1. 0
                suit
                1. 0
                  Gunnar Bittersmann
                  1. 0
                    suit
                    1. 0
                      molily
                      1. 0
                        suit
              2. 0
                Beat
                1. 2
                  molily
        4. 1
          molily
          1. 0
            suit
  2. 0
    molily
  3. 0

    Das geht auch einfacher...

    Solkar
    • menschelei
  4. 0
    EKKi
    • html