W3C home > Mailing lists > Public > www-validator@w3.org > August 2013

Error on generator-unable-to-provide-required-alt

From: Jan P. <proedie@arcor.de>
Date: Thu, 29 Aug 2013 20:18:21 +0200
Message-ID: <521F906D.6090306@arcor.de>
To: www-validator@w3.org
Hello!

According to [1] 'A conformance checker must report the lack of an alt
attribute as an error unless [...]: The img element has a
(non-conforming) generator-unable-to-provide-required-alt attribute
whose value is the empty string.'

However, when I feed the following HTML code to the validator, it
reports two errors.



<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<img src="picture.jpg" generator-unable-to-provide-required-alt="">
</body>
</html>



The errors are: 'An img element must have an alt attribute, except under
certain conditions. For details, consult guidance on providing text
alternatives for images.' (Which I did, obviously.)

And: 'Attribute generator-unable-to-provide-required-alt not allowed on
element img at this point.' (You don't say.)

Shouldn't there be only a warning or did I miss anything? Thanks so much
in advance.

Best wishes,

Jan


[1]
http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#guidance-for-conformance-checkers
Received on Friday, 30 August 2013 21:58:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:09 UTC