XHTML as application/xhtml+xml instead of text/html

Discussion in 'Site and Forum Feedback' started by computergek80, May 1, 2009.

  1. computergek80 macrumors newbie

    Joined:
    Apr 29, 2008
    #1
    Hello,

    I was just in the process of checking wether my favorite sites were all sending their XHTML pages as application/xhtml+xml, when I found that one of my favoritest was sending theirs as text/html. Was wondering if maybe these links could help:
    http://www.ibm.com/developerworks/xml/library/x-tipapachexhtml/index.html and http://www.workingwith.me.uk/articles/scripting/mimetypes
    I have used the php script successfully, and I assume the Apache thing should do the trick.
    I love the php script because it actually rewrites the page to be HTML when the user agent doesn't have application/xhtml+xml in it's request header.

    Hope any of this is helpful,

    Pieter van der Weel
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Well, the site is built on vBulletin so it's not Mac Rumors code. Also, the site doesn't pass validation so and is using XHTML Transitional so something like changing the mime type is a low priority.
     
  3. computergek80 thread starter macrumors newbie

    Joined:
    Apr 29, 2008
    #3
    Okay, right. Shutting up now.
    Edit: I just checked, and you can solve at least a couple of the errors by putting the first meta element inside the head element.
    Edit 2: Another way to reduce errors is to do a search for ' />' and replace with '>' and change the doctype to HTML 4.01. (cuts down to 61 errors)
     

Share This Page