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

Empty class attribute (class="") invalid in XHTML 1.1

From: Tobias Schultze <webmaster@tubo-world.de>
Date: Sun, 14 Jun 2009 06:07:04 +0200
To: <www-validator@w3.org>
Message-ID: <F07302BC214340F8A162149E558C7291@TuboPC>
I was surprised that an empty class attribute (class="") is not valid in
XHTML 1.1

In XHTML 1.0 it's no problem. It's especially restrictive when code is
generated by JavaScript.

But in fact an empty class value is useless. So it makes sense.
Received on Monday, 15 June 2009 06:22:34 GMT

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