Hi Kevin,

Regardless of what you are declaring in your meta tags, the server will trump 
you here and serve out the page as it is configured to do so (as text/html), in 
which case you'll have to configure the server to serve the page out with 
correct mime type. I don't know what you are using to build your pages, but if 
it happens to be ASP.NET you can declare an override type in the Page directive 
like this:

<%@ Page contenttype="application/xhtml+xml" ... %>

(This will cause page to be rendered as XML in Internet Explorer, but this is a 
mobile site so don't worry about it.)

If you can't configure the server, I probably wouldn't fret over that much 
either as your page should still render fine on most devices out there.

Regards,
Michael "Spell" Spellacy
http://www.spellacy.net

@spellacy
________________________________________
From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On 
Behalf Of Kevin Erickson
Sent: Tuesday, June 15, 2010 5:32 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] Mobile Page Passes but MIME Type Fails

Hello All,
If anyone can help me understand why my mobile page passes all accept the MIME 
type.
Page code:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" 
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <title>Virginia.gov Mobile - Home</title>
    <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="max-age=200" />
    <meta http-equiv="content-Language" content="en-us" />
    <meta name="HandheldFriendly" content="True" />
    <meta name="viewport" content="user-scalable=no, width=device-width" />
    <meta name="description" content="Virginia.gov Mobile Portal allows you to 
access key services from Virginia state government on your mobile device, such 
as news, alerts, weather, and contact information." />              
    <meta name="keywords" content="mobile, Virginia.gov, Virginia government, 
PDA, phone, wireless, state" />    
    
    <style type="text/css">
    @import url(../../css/m_index.css);
    </style>
    <link rel="stylesheet" type="text/css" href="/css/iphone.css" media="only 
screen and (max-device-width: 480px)" />
  </head>
  <body>
  <!-- Start of Mobile -->
    <div id="m-header">
      <h1><img src="../../images/virginia_dot_gov_logo.jpg" width="151" 
height="40" alt="Virginia.gov Mobile Web Services" /></h1>
      <p><a accesskey="Z" href="../mobile_expanded/index.html">Switch to 
Expanded Mobile Pages</a></p>
    </div>
    <div class="m-breadcrumbs">Home</div>
<div class="m-body">
      <h2>Mobile Virginia.gov Services:</h2>
      <ul>
        <li>Home</li>
        <li><a accesskey="1" href="search.html">Search Virginia.gov</a></li>
      </ul>
      <h2>People:</h2>
      <ul>
        <li><a accesskey="2" href="people_citizens.html">Citizens</a></li>
        <li><a accesskey="3" href="people_families.html">Families</a></li>
        <li><a accesskey="4" href="people_state_employees.html">State 
Employees</a></li>
        <li><a accesskey="5" href="people_students.html">Students</a></li>
      </ul>
      <h2>Information:</h2>
      <ul>
        <li><a accesskey="6" href="info_government.html">Government</a></li>
        <li><a accesskey="7" href="info_online_services.html">Online 
Services</a></li>
        <li><a accesskey="8" href="info_business.html">Business</a></li>
        <li><a accesskey="9" href="info_employment.html">Employment</a></li>
        <li><a accesskey="A" href="info_education.html">Education</a></li>
        <li><a accesskey="B" href="info_tourism_travel.html">Tourism and 
Travel</a></li>
      </ul>
<h2>About Virginia:</h2>
      <ul>
        <li><a accesskey="C" href="about_va_facts_history.html">Facts and 
History</a></li>
        <li><a accesskey="D" href="about_va_mapping_virginia.html">Mapping 
Virginia</a></li>
      </ul>
    </div>
    <div id="m-footer">
      <ul>
        <li><a href="index.html">mobile.virginia.gov</a></li>
        <li><a href="http://www.virginia.gov";>Virginia.gov Home</a></li>
        <li><a 
href="http://www.virginia.gov/cmsportal3/about_virginia.gov_4096/web_policy.html";>Site
 Policies</a></li>
        <li><a 
href="http://www.virginia.gov/cmsportal3/about_virginia.gov_4096/contact_us.html";>Contact
 Virginia.gov</a></li>
      </ul>
    </div>
  </body>
</html>

To test the page I used http://ready.mobi/launch.jsp?locale=en_EN and the error 
says:

Incorrect or missing MIME types were detected
The MIME types sent by servers give very important information to browsers as 
to how to treat a document. If incorrect MIME types are sent with a document, 
it may prevent the browser from correctly interpreting the document and failing 
to render a document. 
For XHTML-MP, the recommended MIME type is application/vnd.wap.xhtml+xml or 
application/xhtml+xml. Unlike HTML, XHTML-MP should not be served as text/html.
Web servers are often set up correctly for common document types such as HTML 
and CSS, but often do not have the correct doc types for XHTML-MP. Please refer 
to mobiForge for instructions on how to set up your MIME types correctly.
 WARN
MIME type was detected as text/html

I would send a link to the page but it is on a secure server.
Thank you very much for any help on this,

Kevin



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to