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

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>
<meta charset="utf-8">
<img src="picture.jpg" generator-unable-to-provide-required-alt="">

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,


Received on Friday, 30 August 2013 21:58:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:37 UTC