|
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]
|