Re: HTML Testcase for W3 validator

On 30 May 2012, at 09:21, Mike Turpin wrote:
> It was a typo, due to a full stop being placed after a </p> tag.
> I have two questions:
>  1) Is it valid HTML?

Character data is allowed directly inside the body element in XHTML 1.0 Transitional (which you are using), so yes.

It isn't, however, in XHTML 1.0 Strict, so if you were using that instead of the Transitional DTD then the validator would have flagged it.

>  2) If it is valid, could this still be a warning added to the w3 validator?

I'm not an expert on the internals of the validator, but from what I understand it wouldn't be trivial to implement such a warning. 

David Dorward

Received on Thursday, 31 May 2012 12:45:00 UTC