- From: M.T. Carrasco Benitez <mtcarrasco@gmail.com>
- Date: Wed, 8 Mar 2023 14:33:41 +0100
- To: Chuck Houpt <chuck@habilis.net>
- Cc: W3C WWW Validator <www-validator@w3.org>
I should have though of immediately of check the header fields. Could I suggest that the validator read the content (like the browser) when requesting a "Validate by URI”. Thanks > On 7 Mar 2023, at 17:24, Chuck Houpt <chuck@habilis.net> wrote: > > >> On Mar 7, 2023, at 10:15 AM, M.T. Carrasco Benitez <mtcarrasco@gmail.com> wrote: >> >> The validator reports a fatal error for this URI: >> http://limes.lu/en/2 >> >> The second character in the file: “!” >> <!doctype html> > > I think the problem is that the server is not sending a Content-Type header for that page. Other pages on the site (e.g. top level) do have a Content-Type header and are accepted by the validator fine. You can see the difference with browser dev tools, or Curl: > > % curl -I http://limes.lu/en/2 > HTTP/1.1 200 OK > ... > > % curl -I http://limes.lu/ > HTTP/1.1 200 OK > Content-Type: text/html > .... > > Of course it would be nice if the Validator produced a better error message for this situation. > > - Chuck
Received on Wednesday, 8 March 2023 13:34:05 UTC