Question: For the line, 
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd";>, 
would I change this to, 
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD Basic 1.1//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd";>, ??

And change, 
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />, 
to, 
<meta http-equiv="content-Type" content="application/xhtml+xml;
charset=utf-8" />, ??

I have not been able to find the answers on the web.
Thanks.

Kevin

-----Original Message-----
From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On
Behalf Of Phil Archer
Sent: Tuesday, June 15, 2010 6:15 PM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Mobile Page Passes but MIME Type Fails

Hi Kevin,

The answer is in your e-mail. You have created a page using a version of 
XHTML for which the correct MIME type is application/vnd.wap.xhtml+xml 
or application/xhtml+xml

but you're sending text/html so there is a mismatch, hence the warning.

The recommended markup for  mobile is now XHTML Basic 1.1 for which the 
appropriate MIME type is application/xhtml+xml but if you're sending to 
a device that doesn't support that (essentially just IE) then you'll 
need to do as you are doing and use text/html.

However... this is a warning, not a failure, so you may decide just to 
leave things as they are ;-)

Presumably you got this warning from the mobi Ready tool? This uses the 
same core code as the W3C mobileOK checker 
http://validator.w3.org/mobile/ (although we've added a lot of extra UI 
stuff over the last year or so).

HTH

Phil.

Kevin Erickson wrote:
> 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 <http://mobiforge.com>  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
> *******************************************************************

-- 


Phil Archer
W3C Mobile Web Initiative
http://www.w3.org/Mobile

http://philarcher.org


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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.829 / Virus Database: 271.1.1/2938 - Release Date: 06/15/10
02:35:00



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

Reply via email to