Re: It validates az HTML5 with no </head> and no </body>.

Jukka K. Korpela, Sun, 11 Dec 2011 11:51:09 +0200:
> http://ecn.ab.ca/~brewhaha/Biology/Moss_Filter.HTM

> The attachment (and the online document if fixed as suggested here) 
> passes "validation" only due to serious limitations in "validation". 
> In particular, you are using an <img> tag without an alt attribute. 
> This would not pass in validation with an HTML 4.01 doctype, but in 
> HTML5, omission of the alt attribute is allowed under special 
> conditions, which are of such nature that automated checking will not 
> be possible for a few decades (it would require highly sophisticated 
> artificial intelligence). For some odd reason, no warning is given 
> either, even though omission of the alt attribute is wrong in more 
> than 99.99% of cases.

I did not find the original document where the problem manifested 
itself. But it sounds as if you say that the HTML5 validator never 
issues an error message when @alt is lacking. But that is not how it 
is. Here is a test in validator.nu - validator.w3.org gives the same 
result - where there is an error due to lack of @alt:

http://validator.nu/?doc=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%2C%3C%21DOCTYPE+html%3E%3Ctitle%3E%3C%252Ftitle%3E%3Cimg+src%253D%22src%22+%3E&showsource=yes
-- 
Leif H Silli

Received on Monday, 12 December 2011 14:26:24 UTC