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 7 of 7
  1. #1
    Junior Member
    Join Date
    Apr 2006
    Location
    Near Keighley Yorkshire UK
    Posts
    12
    Member #
    13087
    Hi
    Can somebody help me please.
    I cannot understand what w3w wants me to do to get a valid page.
    Originally I had
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />

    Code after attempt to fix:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
    Error Messgae
    The validator has found the following problem(s) prior to validation, which should be addressed in priority:
    Conflict between Mime Type and Document Type
    The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

    I got the same message each time I think.
    It appears the page is otherwise valid.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Give us a link to your page.


  4. #3
    Junior Member
    Join Date
    Apr 2006
    Location
    Near Keighley Yorkshire UK
    Posts
    12
    Member #
    13087
    Hi I can clear the error by renaming the page .xhtml not .htm but then it will not open in Internet explorer.
    http://www.weblark.net/FEstudents/VisualBasic/index.htm is the webpage.

  5. #4
    Senior Member Ferro's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    386
    Member #
    14204
    Liked
    5 times
    Tried "html"?

  6. #5
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    As it turns out, you cannot be compliant to XHTML 1.1 without your page being served up with the MIME type application/xhtml+xml. Since IE does not recognize that MIME type, it will refuse to display the page, however. For this reason, it's currently impossible to both be fully valid XHTML 1.1 *and* cater to all web users at the same time.

  7. #6
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Quote Originally Posted by Shadowfiend
    As it turns out, you cannot be compliant to XHTML 1.1 without your page being served up with the MIME type application/xhtml+xml. Since IE does not recognize that MIME type, it will refuse to display the page, however. For this reason, it's currently impossible to both be fully valid XHTML 1.1 *and* cater to all web users at the same time.
    Well, sort of. You can content-negotiate the HTML.

    What WDF v6 does, which is just a compromise:
    • If your browser explicitly states it supports application/xhtml+xml as per the Accept header, it'll serve it that way. It has to be explicit; */* (what retarded IE sends) doesn't count.
    • If your user agent is known to support it but doesn't actually tell that it does, it'll also get application/xhtml+xml
    • If neither of the above conditions are met, you get text/html.

    If you specifically allow the W3C Validator application/xhtml+xml--something it doesn't send in the Accept header--that only leaves IE as the majority which gets text/html. It also as the advantage of supporting browsers that are really minor and also don't advertise application/xhtml+xml support.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  8. #7
    Junior Member
    Join Date
    Apr 2006
    Location
    Near Keighley Yorkshire UK
    Posts
    12
    Member #
    13087
    Thank you, I was thinking that must be the case, but I am only a part-timer at web design I am a teacher the rest of the time.


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 04:50 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com