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

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 UTC