Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: XHTML Mime-type

  1. #1
    Senior Member tonyf12's Avatar
    Join Date
    Mar 2007
    Posts
    132
    Member #
    14998
    I am working on a project and I have configured my PHP to send xhtml documents with the application/xhtml+xml mime type to browsers that claim to support it.

    I have also made sure the documents all validate and put all my scripts/stylesheets into external files. Is there anything else I should know about using the application/xhtml+xml mime type?

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    IE will claim to support it because it has */* in its request headers. Make sure you explicitly look for application/xhtml+xml, not anything that matches a pattern.

    Also, while it is the right MIME type to use, remember that even a single error that results in making the page non-well-formed XML will make it fail to render at all. If your documents validate like you said, it's not an issue.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:15 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com