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

translate attribute bad value error

From: Stefán Örvar Sigmundsson <stefan_orvar_sigmundsson@outlook.com>
Date: Mon, 24 Jun 2013 03:00:27 +0000
Message-ID: <DUB109-DS46FCD7576559E7651FB111C18A0@phx.gbl>
To: <www-validator@w3.org>
www-validator@w3.org:

The HTML validator reports a "bad value" error when the translate attribute is an empty string, like so:

<p translate=""></p>

The HTML5 candidate recommendation and the HTML5.1 working draft both state that the empty string should map to the "yes" state. Am I correct to assume that this means that an empty string is syntactically valid? According to the above-mentioned documents enumerated attributes are allowed to be empty strings and the translate attribute is an enumerated attribute.

http://www.w3.org/TR/html5/dom.html#attr-translate
http://www.w3.org/TR/html51/dom.html#attr-translate

Yours respectfully,
Stefán Örvar Sigmundsson
Received on Monday, 24 June 2013 05:55:26 UTC

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