You are here: Re: Test pages served as html, xhtml, and xml « HTML « IT news, forums, messages
Re: Test pages served as html, xhtml, and xml

Posted by cwdjrxyz on 01/19/06 06:43

cwdjrxyz wrote:

> I examined the php include in the auto page that processes the header
> information. It is set up to use the true xhtml page only if it finds
> the mime type application/xhtml+html mentioned by the browser as a
> possible application when the server and browser first connect. If no
> mention of this mime type is found, it takes the safe "else" path to
> serve as html 4.01 strict, since anything else would require elaborate
> browser and version detection that is far from safe. It is quite
> posible a browser vendor could make an "xhtml ready" browser. That is,
> it would handle xhtml served as html(which is no big deal), but it
> could accept true xhtml served as such at some future time when the
> browser vendor thinks the browser is ready and adds the correct mime
> type for it in the header information the browser provides the server.
> Such a "xhtml ready" browser might or might not support a page served
> only as application/xhtml+xml or as application/xml. It might be
> possible to hack around this if there really are any "xhtml ready"
> browsers. However I can not afford to add extra computers to support
> some of the browsers of interest, these browsers are not used very much
> yet, and there would be many possible problems in detecting which
> browser and version you had. Thus I am content to let any possible
> "xhtml ready" browers receive xhtml 4.01 strict for now.

I have added another page named
http://www.cwdjr.info/extensions/autoForceXhtml.php .
It is designed to automatically force the page to be served as
application/xhtml+xml no matter what the browser says it will support
or likes in the header exchange. Thus browsers that really will not
support true xhtml 1.1 served properly will not display the page.
However if there is a "xhtml ready" browser out there that really could
support true xhtml, but does not because it does not mention it in the
browser-server header exchange, this page may smoke it out. I give more
discussion on the page if your browser allows you in. This new page
gets in and displays for the recent Firefox, Netscape, Mozilla, Opera,
and W3C Amaya browsers. It does not open the page for IE6 or Netscape
4.8, which of course it should not. Of course I do not know if there
are really any "xhtml ready" browsers out there, and if there are I do
not have them installed on my computer.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация