Jump to content

XHTML Mobile 1.0 failing validation


Guest BuzLightYear

Recommended Posts

Guest BuzLightYear

I pasted the following code (into validate by direct input)

<?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>Untitled Document</title></head><body></body></html>

and it gives me:Result: Failed validation, 0 errorFile: upload://Form SubmissionEncoding: utf-8Doctype: -//WAPFORUM//DTD XHTML Mobile 1.0//ENRoot Namespace: http://www.w3.org/1999/xhtmlUnknown Parse Mode! The MIME Media Type () for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.Namespace Found in non-XML Document Namespace "" found, but document type is not XML!This page is not Valid -//WAPFORUM//DTD XHTML Mobile 1.0//EN!Below are the results of attempting to parse this document with an SGML parser.any ideas??the only way it accepts is if i rename it and upload as an .xml file??

Link to comment
Share on other sites

I saw the DOCTYPEs which the W3C validator supports and guess what- XHTML Mobile is not among them... Use strict instead. Mobile phones support it anyway :) .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...