Posted by conradstrydom 3 years 2 weeks ago
Hi guys,
I am quite confused.. I have been looking at the correct way of presenting pages in XHTML-MP and found with interest that mobiforge.mobi seems to be serving the pages as text/html (Content-type header in the response)?
I thought this was not the correct practice, any reason why you guys are doing that?
Further more I ran mobiforge.mobi through ready.mobi (to check my facts) and it scored 5 (well done), I then scrolled down to the explanation on MIME-Types and was interested to see it pass there even with the text/html type.
" PASS
MIME type for main doc: text/html; charset=utf-8"
Further more in the same box it explains:
"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."
Could you please shed some light on what I am seeing as I am getting really confused.. m.facebook.com for example serves as xml?
Thanks and keep up the great work, seeing as my career is taken a heavy shift to Mobile Web this will become an invaluable resource!




Posted by ruadhan 3 years ago
Mobile Champion
Hi,
Sorry for causing any confusion, and thanks for pointing this out - the fault on our side.
You are correct, XHTML MP should be sent with a content-type header of application/xhtml+xml, and ready.mobi should be reporting a WARN instead of a PASS, which means that the overall score is not affected (this has been remedied in our development snapshot of ready.mobi, and will be rolled out in the next minor release)
Jo has gone into some detail on the issues here.
Ruadhan O'DonoghuedotMobi