W3C home > Mailing lists > Public > www-validator@w3.org > December 2011

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

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Mon, 12 Dec 2011 15:25:49 +0100
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Cc: Jay Litwyn <brewhaha@freenet.edmonton.ab.ca>, www-validator@w3.org
Message-ID: <20111212152549986424.28d23cc4@xn--mlform-iua.no>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:49 GMT