I am developing a .mobi website, and have a testing copy hosted at http://jackie-liu.info/mobi/. I have managed to edit the code to get a 5/5 on Ready.mobi (which tells me that my markup is valid), but am getting errors on the W3C Validator.
Ready.mobi results: http://ready.mobi/results2.jsp?uri=http://www.jackie-liu.info/mobi/&locale=null
W3C Validator results: http://validator.w3.org/check?uri=http://www.jackie-liu.info/mobi/
Please advise me if I should, and if so, how to deal with the errors on the W3C Validator.
Some additional information:
If I remove the ending slash character (/) at the problem places that the W3C Validator points out, then the two errors at W3C disappear. But then Ready.mobi begins to throw a fit about invalid code, and lowers my MOBI Ready score to 4/5. Ready.mobi then says I need to close the <link rel="stylesheet" type="text/css" href="styles/styles.css" /> and <meta http-equiv="Cache-Control" content="no-cache" /> tags. I close them with </link> and </meta> respectively, then the W3C Validator says I had closed elements using these tags that were never opened. It satisfies Ready.mobi again though.
I'm stuck in a loop, please help.
Note: I have renamed my index file from index.xhtml to index.html. Maybe that is why the W3C validator says
"
Unknown Parse Mode!
The MIME Media Type (text/html) 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!
"
I'll change it back to the .xhtml so it's served as text/xhtml, and it should deal with those top errors. But I still need help with the other, more serious errors.
Sidenote: What is the license of the .MOBI templates found in the right sidebar of this page? Are there any conditions for use? Do I have full rights (use, sale, distribute, etc.) for pages or designs made using that template?
Ready.mobi results: http://ready.mobi/results2.jsp?uri=http://www.jackie-liu.info/mobi/&locale=null
W3C Validator results: http://validator.w3.org/check?uri=http://www.jackie-liu.info/mobi/
Please advise me if I should, and if so, how to deal with the errors on the W3C Validator.
Some additional information:
If I remove the ending slash character (/) at the problem places that the W3C Validator points out, then the two errors at W3C disappear. But then Ready.mobi begins to throw a fit about invalid code, and lowers my MOBI Ready score to 4/5. Ready.mobi then says I need to close the <link rel="stylesheet" type="text/css" href="styles/styles.css" /> and <meta http-equiv="Cache-Control" content="no-cache" /> tags. I close them with </link> and </meta> respectively, then the W3C Validator says I had closed elements using these tags that were never opened. It satisfies Ready.mobi again though.
I'm stuck in a loop, please help.
Note: I have renamed my index file from index.xhtml to index.html. Maybe that is why the W3C validator says
"
Unknown Parse Mode!
The MIME Media Type (text/html) 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!
"
I'll change it back to the .xhtml so it's served as text/xhtml, and it should deal with those top errors. But I still need help with the other, more serious errors.
Sidenote: What is the license of the .MOBI templates found in the right sidebar of this page? Are there any conditions for use? Do I have full rights (use, sale, distribute, etc.) for pages or designs made using that template?
Last edited:






