[html5] validator.nu Web GUI -- How to validate against XHTML5?

Michael[tm] Smith mike at w3.org
Tue Nov 6 00:46:14 PST 2012

jama <jamappi at gmail.com>, 2012-11-06 09:42 +0100:

> On 06.11.2012 09:30, Michael[tm] Smith wrote:
> >Actually I realize now that upstream http://validator.nu/ does that as
> >expected. The bad behavior you're seeing is only in the W3C Nu validator
> >and so is a bug that I need to figure out the cause of and fix. Sorry that
> >you had to be the one to discover it but I will try to get a fix made asap
> >so that others don't get bit by it.
> I tried http://validator.nu/ now and I'm getting a very strange error there
> too. I checked two *identical* files against the XHTML5 preset. The only
> difference is that one file I named .html and the other .xhtml. The .xhtml
> one would validate just as expected, but the .html one would give me this
> error:
> IO Error: Non-XML Content-Type: |text/html|.
> Are you sure that the validator at http://validator.nu/ works as intended?
> It seems to me this one falls back to checking the file extension as well.
> (Or maybe I'm doing something wrong here.)

It works for me as expected without reporting that error. Do you have the
"Be lax about HTTP Content-Type" option checked when you feed it the .html


Michael[tm] Smith http://people.w3.org/mike

More information about the Help mailing list