You are here: Re: what do you think? review my site.... is it working in your browser « HTML « IT news, forums, messages
Re: what do you think? review my site.... is it working in your browser

Posted by Peter J Ross on 09/20/07 12:23

In alt.html on Thu, 20 Sep 2007 12:02:31 GMT, Beauregard T. Shagnasty
<a.nony.mous@example.invalid> wrote:

> Note that (at least for me) when I use the normal way of testing by
> entering the URL, the validator says:
> "This Page Is Valid HTML 4.01 Strict!"
>
> ..when in fact your page uses:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>
> So something is wrong. I can't find another XHTML 1.1 page to test with
> at the moment.

Different content is being served to different browsers, according to
what Accept: header is sent.

pjr@lenny:~$ curl -IH "Accept: application/xhtml+xml" http://www.winsborough.co.nz/
[...]
Content-Type: application/xhtml+xml; charset=utf-8

pjr@lenny:~$ curl -IH "Accept: text/html" http://www.winsborough.co.nz/
[...]
Content-Type: text/html; charset=utf-8

The validator chooses the HTML version,

--
PJR :-)

 

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

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